Show / Hide Table of Contents

    Class DynamicTable

    Inheritance
    Object
    DynamicTable
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Titanium.Web.Proxy.Http2.Hpack
    Assembly: Titanium.Web.Proxy.dll
    Syntax
    public class DynamicTable

    Constructors

    DynamicTable(Int32)

    Creates a new dynamic table with the specified initial capacity.

    Declaration
    public DynamicTable(int initialCapacity)
    Parameters
    Type Name Description
    Int32 initialCapacity

    Initial capacity.

    Properties

    Capacity

    Return the maximum allowable size of the dynamic table.

    Declaration
    public int Capacity { get; }
    Property Value
    Type Description
    Int32

    The capacity.

    Size

    Return the current size of the dynamic table. This is the sum of the size of the entries.

    Declaration
    public int Size { get; }
    Property Value
    Type Description
    Int32

    The size.

    Methods

    Add(HttpHeader)

    Add the header field to the dynamic table. Entries are evicted from the dynamic table until the size of the table and the new header field is less than or equal to the table's capacity. If the size of the new entry is larger than the table's capacity, the dynamic table will be cleared.

    Declaration
    public void Add(HttpHeader header)
    Parameters
    Type Name Description
    HttpHeader header

    Header.

    Clear()

    Remove all entries from the dynamic table.

    Declaration
    public void Clear()

    GetEntry(Int32)

    Return the header field at the given index. The first and newest entry is always at index 1, and the oldest entry is at the index length().

    Declaration
    public HttpHeader GetEntry(int index)
    Parameters
    Type Name Description
    Int32 index

    Index.

    Returns
    Type Description
    HttpHeader

    The entry.

    Length()

    Return the number of header fields in the dynamic table.

    Declaration
    public int Length()
    Returns
    Type Description
    Int32

    Remove()

    Remove and return the oldest header field from the dynamic table.

    Declaration
    public HttpHeader Remove()
    Returns
    Type Description
    HttpHeader

    SetCapacity(Int32)

    Set the maximum size of the dynamic table. Entries are evicted from the dynamic table until the size of the table is less than or equal to the maximum size.

    Declaration
    public void SetCapacity(int capacity)
    Parameters
    Type Name Description
    Int32 capacity

    Capacity.

    Back to top Generated by DocFX