proxygen
|
#include <StructuredHeadersDecoder.h>
Public Member Functions | |
StructuredHeadersDecoder (const std::string &s) | |
StructuredHeaders::DecodeError | decodeItem (StructuredHeaderItem &result) |
StructuredHeaders::DecodeError | decodeList (std::vector< StructuredHeaderItem > &result) |
StructuredHeaders::DecodeError | decodeDictionary (Dictionary &result) |
StructuredHeaders::DecodeError | decodeParameterisedList (ParameterisedList &result) |
Private Types | |
enum | MapType { MapType::DICTIONARY = 0, MapType::PARAMETERISED_MAP = 1 } |
Private Member Functions | |
StructuredHeaders::DecodeError | decodeMap (std::unordered_map< std::string, StructuredHeaderItem > &result, MapType mapType) |
Private Attributes | |
StructuredHeadersBuffer | buf_ |
Definition at line 18 of file StructuredHeadersDecoder.h.
|
strongprivate |
Enumerator | |
---|---|
DICTIONARY | |
PARAMETERISED_MAP |
Definition at line 34 of file StructuredHeadersDecoder.h.
|
inlineexplicit |
Definition at line 21 of file StructuredHeadersDecoder.h.
References decodeDictionary(), decodeItem(), decodeList(), and decodeParameterisedList().
DecodeError proxygen::StructuredHeadersDecoder::decodeDictionary | ( | Dictionary & | result | ) |
Definition at line 61 of file StructuredHeadersDecoder.cpp.
Referenced by StructuredHeadersDecoder(), and proxygen::TEST_F().
DecodeError proxygen::StructuredHeadersDecoder::decodeItem | ( | StructuredHeaderItem & | result | ) |
Definition at line 17 of file StructuredHeadersDecoder.cpp.
References proxygen::StructuredHeaders::INVALID_CHARACTER, and proxygen::StructuredHeaders::OK.
Referenced by StructuredHeadersDecoder(), proxygen::TEST_F(), and proxygen::TEST_P().
DecodeError proxygen::StructuredHeadersDecoder::decodeList | ( | std::vector< StructuredHeaderItem > & | result | ) |
Definition at line 27 of file StructuredHeadersDecoder.cpp.
References proxygen::StructuredHeaders::OK, and proxygen::StructuredHeaders::UNEXPECTED_END_OF_BUFFER.
Referenced by StructuredHeadersDecoder(), proxygen::TEST_F(), and proxygen::TEST_P().
|
private |
Definition at line 103 of file StructuredHeadersDecoder.cpp.
References proxygen::StructuredHeaders::DUPLICATE_KEY, proxygen::StructuredHeaders::StructuredHeaderItem::NONE, proxygen::StructuredHeaders::OK, string, proxygen::StructuredHeaders::StructuredHeaderItem::tag, proxygen::StructuredHeaders::UNEXPECTED_END_OF_BUFFER, and value.
DecodeError proxygen::StructuredHeadersDecoder::decodeParameterisedList | ( | ParameterisedList & | result | ) |
Definition at line 65 of file StructuredHeadersDecoder.cpp.
References proxygen::StructuredHeaders::ParameterisedIdentifier::identifier, proxygen::StructuredHeaders::OK, proxygen::StructuredHeaders::ParameterisedIdentifier::parameterMap, and proxygen::StructuredHeaders::UNEXPECTED_END_OF_BUFFER.
Referenced by StructuredHeadersDecoder(), and proxygen::TEST_F().
|
private |
Definition at line 43 of file StructuredHeadersDecoder.h.