proxygen
|
#include <HeaderDecodeInfo.h>
Public Member Functions | |
void | init (bool isRequestIn, bool isRequestTrailers) |
bool | onHeader (const folly::fbstring &name, const folly::fbstring &value) |
void | onHeadersComplete (HTTPHeaderSize decodedSize) |
bool | hasStatus () const |
Public Attributes | |
std::unique_ptr< HTTPMessage > | msg |
HTTPRequestVerifier | verifier |
std::string | parsingError |
HPACK::DecodeError | decodeError {HPACK::DecodeError::NONE} |
Private Attributes | |
bool | isRequest_ {false} |
bool | isRequestTrailers_ {false} |
bool | hasStatus_ {false} |
bool | regularHeaderSeen_ {false} |
bool | pseudoHeaderSeen_ {false} |
folly::Optional< uint32_t > | contentLength_ |
Definition at line 19 of file HeaderDecodeInfo.h.
bool proxygen::HeaderDecodeInfo::hasStatus | ( | ) | const |
Definition at line 135 of file HeaderDecodeInfo.cpp.
References hasStatus_.
Referenced by init(), and proxygen::HTTP2Codec::parsingTrailers().
|
inline |
Definition at line 21 of file HeaderDecodeInfo.h.
References contentLength_, decodeError, hasStatus(), hasStatus_, isRequest_, isRequestTrailers_, msg, name, proxygen::HPACK::NONE, folly::none, onHeader(), onHeadersComplete(), parsingError, pseudoHeaderSeen_, regularHeaderSeen_, proxygen::HTTPRequestVerifier::reset(), value, and verifier.
Referenced by proxygen::HTTP2Codec::parseHeadersDecodeFrames().
bool proxygen::HeaderDecodeInfo::onHeader | ( | const folly::fbstring & | name, |
const folly::fbstring & | value | ||
) |
Definition at line 16 of file HeaderDecodeInfo.cpp.
References contentLength_, decodeError, proxygen::HTTPMessage::getDefaultReason(), hasStatus_, int32_t, isRequest_, proxygen::headers::kAuthority, proxygen::headers::kMethod, proxygen::headers::kPath, proxygen::headers::kProtocol, proxygen::headers::kScheme, proxygen::headers::kStatus, msg, proxygen::HPACK::NONE, parsingError, pseudoHeaderSeen_, regularHeaderSeen_, proxygen::HTTPRequestVerifier::setAuthority(), proxygen::HTTPRequestVerifier::setMethod(), proxygen::HTTPRequestVerifier::setPath(), proxygen::HTTPRequestVerifier::setScheme(), proxygen::HTTPRequestVerifier::setUpgradeProtocol(), folly::Range< Iter >::startsWith(), proxygen::CodecUtil::STRICT, string, uint32_t, proxygen::CodecUtil::validateHeaderName(), proxygen::CodecUtil::validateHeaderValue(), value, and verifier.
Referenced by init(), and proxygen::HTTP2Codec::onHeader().
void proxygen::HeaderDecodeInfo::onHeadersComplete | ( | HTTPHeaderSize | decodedSize | ) |
Definition at line 111 of file HeaderDecodeInfo.cpp.
References proxygen::HTTPHeaders::combine(), proxygen::HTTPRequestVerifier::error, hasStatus_, proxygen::HTTP_HEADER_COOKIE, isRequest_, isRequestTrailers_, msg, parsingError, pseudoHeaderSeen_, proxygen::HTTPHeaders::set(), proxygen::HTTPRequestVerifier::validate(), and verifier.
Referenced by init(), and proxygen::HTTP2Codec::onHeadersComplete().
|
private |
Definition at line 54 of file HeaderDecodeInfo.h.
Referenced by init(), and onHeader().
HPACK::DecodeError proxygen::HeaderDecodeInfo::decodeError {HPACK::DecodeError::NONE} |
Definition at line 46 of file HeaderDecodeInfo.h.
Referenced by init(), proxygen::HTTP2Codec::onDecodeError(), onHeader(), and proxygen::HTTP2Codec::parseHeadersDecodeFrames().
|
private |
Definition at line 51 of file HeaderDecodeInfo.h.
Referenced by hasStatus(), init(), onHeader(), and onHeadersComplete().
|
private |
Definition at line 49 of file HeaderDecodeInfo.h.
Referenced by init(), onHeader(), and onHeadersComplete().
|
private |
Definition at line 50 of file HeaderDecodeInfo.h.
Referenced by init(), and onHeadersComplete().
std::unique_ptr<HTTPMessage> proxygen::HeaderDecodeInfo::msg |
Definition at line 43 of file HeaderDecodeInfo.h.
Referenced by init(), onHeader(), proxygen::HTTP2Codec::onHeadersComplete(), onHeadersComplete(), and proxygen::HTTP2Codec::parseHeadersDecodeFrames().
std::string proxygen::HeaderDecodeInfo::parsingError |
Definition at line 45 of file HeaderDecodeInfo.h.
Referenced by init(), proxygen::HTTP2Codec::onHeader(), onHeader(), proxygen::HTTP2Codec::onHeadersComplete(), onHeadersComplete(), and proxygen::HTTP2Codec::parseHeadersDecodeFrames().
|
private |
Definition at line 53 of file HeaderDecodeInfo.h.
Referenced by init(), onHeader(), and onHeadersComplete().
|
private |
Definition at line 52 of file HeaderDecodeInfo.h.
Referenced by init(), and onHeader().
HTTPRequestVerifier proxygen::HeaderDecodeInfo::verifier |
Definition at line 44 of file HeaderDecodeInfo.h.
Referenced by init(), onHeader(), proxygen::HTTP2Codec::onHeadersComplete(), and onHeadersComplete().