proxygen
|
#include <StaticHeaderTable.h>
Public Member Functions | |
StaticHeaderTable (const char *entries[][2], int size) | |
![]() | |
HeaderTable (uint32_t capacityVal) | |
virtual | ~HeaderTable () |
HeaderTable (const HeaderTable &)=delete | |
HeaderTable & | operator= (const HeaderTable &)=delete |
virtual bool | add (HPACKHeader header) |
uint32_t | getIndex (const HPACKHeader &header) const |
const HPACKHeader & | getHeader (uint32_t index) const |
bool | isValid (uint32_t index) const |
bool | hasName (const HPACKHeaderName &headerName) |
const names_map & | names () const |
uint32_t | nameIndex (const HPACKHeaderName &headerName) const |
uint32_t | capacity () const |
uint32_t | getMaxTableLength (uint32_t capacityVal) |
virtual bool | setCapacity (uint32_t capacity) |
uint32_t | size () const |
uint32_t | bytes () const |
size_t | length () const |
bool | operator== (const HeaderTable &other) const |
Static Public Member Functions | |
static const StaticHeaderTable & | get () |
static bool | isHeaderCodeInTableWithNonEmptyValue (HTTPHeaderCode headerCode) |
![]() | |
static uint32_t | toExternal (uint32_t head, uint32_t length, uint32_t internalIndex) |
static uint32_t | toInternal (uint32_t head, uint32_t length, uint32_t externalIndex) |
Additional Inherited Members | |
![]() | |
using | names_map = std::unordered_map< HPACKHeaderName, std::list< uint32_t >> |
![]() | |
void | init (uint32_t capacityVal) |
virtual void | increaseTableLengthTo (uint32_t newLength) |
virtual void | resizeTable (uint32_t newLength) |
virtual void | updateResizedTable (uint32_t oldTail, uint32_t oldLength, uint32_t newLength) |
virtual uint32_t | removeLast () |
void | reset () |
virtual uint32_t | evict (uint32_t needed, uint32_t desiredCapacity) |
uint32_t | next (uint32_t i) const |
uint32_t | tail () const |
uint32_t | toExternal (uint32_t internalIndex) const |
uint32_t | toInternal (uint32_t externalIndex) const |
![]() | |
uint32_t | capacity_ {0} |
uint32_t | bytes_ {0} |
std::vector< HPACKHeader > | table_ |
uint32_t | size_ {0} |
uint32_t | head_ {0} |
names_map | names_ |
Definition at line 19 of file StaticHeaderTable.h.
|
explicit |
Definition at line 107 of file StaticHeaderTable.cpp.
References proxygen::HeaderTable::add(), i, proxygen::HeaderTable::init(), folly::gen::move, proxygen::HeaderTable::size(), and uint32_t.
|
static |
Definition at line 126 of file StaticHeaderTable.cpp.
Referenced by proxygen::QPACKContext::getStaticTable(), and proxygen::HPACKContext::getStaticTable().
|
static |
Definition at line 92 of file StaticHeaderTable.cpp.
References proxygen::HTTP_HEADER_ACCEPT_ENCODING, proxygen::HTTP_HEADER_COLON_METHOD, proxygen::HTTP_HEADER_COLON_PATH, proxygen::HTTP_HEADER_COLON_SCHEME, and proxygen::HTTP_HEADER_COLON_STATUS.
Referenced by proxygen::HPACKContext::getIndex().