proxygen
|
#include <StructuredHeadersEncoder.h>
Public Member Functions | |
StructuredHeadersEncoder () | |
EncodeError | encodeParameterisedList (const ParameterisedList &input) |
EncodeError | encodeDictionary (const Dictionary &input) |
EncodeError | encodeList (const std::vector< StructuredHeaderItem > &input) |
EncodeError | encodeItem (const StructuredHeaderItem &input) |
EncodeError | encodeIdentifier (const std::string &input) |
std::string | get () |
Private Member Functions | |
EncodeError | encodeBinaryContent (const std::string &input) |
EncodeError | encodeString (const std::string &input) |
EncodeError | encodeInteger (int64_t input) |
EncodeError | encodeFloat (double input) |
EncodeError | handleEncodeError (EncodeError err, const std::string &badContent) |
EncodeError | handleEncodeError (EncodeError err) |
Private Attributes | |
std::string | output_ |
string_buf | buf_ |
std::ostream | outputStream_ |
Definition at line 28 of file StructuredHeadersEncoder.h.
proxygen::StructuredHeadersEncoder::StructuredHeadersEncoder | ( | ) |
Definition at line 111 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::kMaxValidFloatLength, and outputStream_.
|
private |
Definition at line 142 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::encodeBase64(), and outputStream_.
Referenced by encodeItem().
EncodeError proxygen::StructuredHeadersEncoder::encodeDictionary | ( | const Dictionary & | input | ) |
Definition at line 43 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::EMPTY_DATA_STRUCTURE, cpp.ast::next(), and proxygen::StructuredHeaders::OK.
Referenced by proxygen::TEST_F().
|
private |
Definition at line 178 of file StructuredHeadersEncoder.cpp.
References outputStream_.
Referenced by encodeItem().
EncodeError proxygen::StructuredHeadersEncoder::encodeIdentifier | ( | const std::string & | input | ) |
Definition at line 185 of file StructuredHeadersEncoder.cpp.
References handleEncodeError(), proxygen::StructuredHeaders::isValidIdentifier(), and outputStream_.
Referenced by proxygen::TEST_F().
|
private |
Definition at line 171 of file StructuredHeadersEncoder.cpp.
References outputStream_.
Referenced by encodeItem().
EncodeError proxygen::StructuredHeadersEncoder::encodeItem | ( | const StructuredHeaderItem & | input | ) |
Definition at line 118 of file StructuredHeadersEncoder.cpp.
References encodeBinaryContent(), encodeFloat(), encodeInteger(), encodeString(), handleEncodeError(), proxygen::StructuredHeaders::itemTypeMatchesContent(), STRING, proxygen::StructuredHeaders::StructuredHeaderItem::tag, and proxygen::StructuredHeaders::StructuredHeaderItem::value.
Referenced by proxygen::TEST_F().
EncodeError proxygen::StructuredHeadersEncoder::encodeList | ( | const std::vector< StructuredHeaderItem > & | input | ) |
Definition at line 22 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::EMPTY_DATA_STRUCTURE, cpp.ast::next(), and proxygen::StructuredHeaders::OK.
Referenced by proxygen::TEST_F().
EncodeError proxygen::StructuredHeadersEncoder::encodeParameterisedList | ( | const ParameterisedList & | input | ) |
Definition at line 71 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::EMPTY_DATA_STRUCTURE, cpp.ast::next(), proxygen::StructuredHeaders::StructuredHeaderItem::NONE, and proxygen::StructuredHeaders::OK.
Referenced by proxygen::TEST_F().
|
private |
Definition at line 152 of file StructuredHeadersEncoder.cpp.
References c, handleEncodeError(), proxygen::StructuredHeaders::isValidString(), and outputStream_.
Referenced by encodeItem().
std::string proxygen::StructuredHeadersEncoder::get | ( | ) |
Definition at line 212 of file StructuredHeadersEncoder.cpp.
References folly::gen::move, output_, and outputStream_.
Referenced by proxygen::TEST_F().
|
private |
Definition at line 197 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::encodeErrorDescription, and proxygen::ERROR.
Referenced by encodeIdentifier(), encodeItem(), and encodeString().
|
private |
Definition at line 206 of file StructuredHeadersEncoder.cpp.
References proxygen::StructuredHeaders::encodeErrorDescription, and proxygen::ERROR.
|
private |
Definition at line 62 of file StructuredHeadersEncoder.h.
|
private |
Definition at line 61 of file StructuredHeadersEncoder.h.
Referenced by get().
|
private |
Definition at line 63 of file StructuredHeadersEncoder.h.
Referenced by encodeBinaryContent(), encodeFloat(), encodeIdentifier(), encodeInteger(), encodeString(), get(), and StructuredHeadersEncoder().