C# Class hpack.StaticTable

Mostra file Open project: ringostarr80/hpack

Public Methods

Method Description
GetEntry ( int index ) : HeaderField

Return the header field at the given index value.

GetIndex ( byte name ) : int

Returns the lowest index value for the given header field name in the static table. Returns -1 if the header field name is not in the static table.

GetIndex ( byte name, byte value ) : int

Returns the index value for the given header field in the static table. Returns -1 if the header field is not in the static table.

Private Methods

Method Description
CreateMap ( ) : int>.Dictionary

create a map of header name to index value to allow quick lookup

Method Details

GetEntry() public static method

Return the header field at the given index value.
public static GetEntry ( int index ) : HeaderField
index int Index.
return HeaderField

GetIndex() public static method

Returns the lowest index value for the given header field name in the static table. Returns -1 if the header field name is not in the static table.
public static GetIndex ( byte name ) : int
name byte Name.
return int

GetIndex() public static method

Returns the index value for the given header field in the static table. Returns -1 if the header field is not in the static table.
public static GetIndex ( byte name, byte value ) : int
name byte Name.
value byte Value.
return int