메소드 | 설명 | |
---|---|---|
Add ( HeaderField header ) : void |
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.
|
|
Clear ( ) : void |
Remove all entries from the dynamic table.
|
|
DynamicTable ( int initialCapacity ) : System |
Creates a new dynamic table with the specified initial capacity.
|
|
GetCapacity ( ) : int |
Return the maximum allowable size of the dynamic table.
|
|
GetEntry ( int index ) : HeaderField |
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().
|
|
GetSize ( ) : int |
Return the current size of the dynamic table. This is the sum of the size of the entries.
|
|
Length ( ) : int |
Return the number of header fields in the dynamic table.
|
|
Remove ( ) : HeaderField |
Remove and return the oldest header field from the dynamic table.
|
|
SetCapacity ( int capacity ) : void |
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.
|
public DynamicTable ( int initialCapacity ) : System | ||
initialCapacity | int | Initial capacity. |
리턴 | System |