proxygen
|
#include <HTTPRequestVerifier.h>
Public Member Functions | |
HTTPRequestVerifier () | |
void | reset (HTTPMessage *msg) |
bool | setMethod (folly::StringPiece method) |
bool | setPath (folly::StringPiece path) |
bool | setScheme (folly::StringPiece scheme) |
bool | setAuthority (folly::StringPiece authority) |
bool | setUpgradeProtocol (folly::StringPiece protocol) |
bool | validate () |
void | setMessage (HTTPMessage *msg) |
void | setHasMethod (bool hasMethod) |
void | setHasPath (bool hasPath) |
void | setHasScheme (bool hasScheme) |
void | setHasAuthority (bool hasAuthority) |
void | setHasUpgradeProtocol (bool val) |
bool | hasUpgradeProtocol () |
Public Attributes | |
std::string | error |
Private Attributes | |
HTTPMessage * | msg_ {nullptr} |
bool | hasMethod_ {false} |
bool | hasPath_ {false} |
bool | hasScheme_ {false} |
bool | hasAuthority_ {false} |
bool | hasUpgradeProtocol_ {false} |
Definition at line 18 of file HTTPRequestVerifier.h.
|
inlineexplicit |
Definition at line 20 of file HTTPRequestVerifier.h.
|
inline |
Definition at line 150 of file HTTPRequestVerifier.h.
References hasUpgradeProtocol_.
Referenced by proxygen::HTTP2Codec::onHeadersComplete().
|
inline |
Definition at line 22 of file HTTPRequestVerifier.h.
References error, hasAuthority_, hasMethod_, hasPath_, hasScheme_, hasUpgradeProtocol_, and msg_.
Referenced by proxygen::HeaderDecodeInfo::init().
|
inline |
Definition at line 81 of file HTTPRequestVerifier.h.
References proxygen::HTTPHeaders::add(), error, proxygen::HTTPMessage::getHeaders(), hasAuthority_, proxygen::HTTP_HEADER_HOST, msg_, folly::Range< Iter >::str(), proxygen::CodecUtil::STRICT, and proxygen::CodecUtil::validateHeaderValue().
Referenced by proxygen::HeaderDecodeInfo::onHeader().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 146 of file HTTPRequestVerifier.h.
References hasUpgradeProtocol_, and val.
Referenced by setUpgradeProtocol().
|
inline |
|
inline |
Definition at line 32 of file HTTPRequestVerifier.h.
References error, hasMethod_, msg_, proxygen::HTTPMessage::setMethod(), and proxygen::CodecUtil::validateMethod().
Referenced by proxygen::HeaderDecodeInfo::onHeader().
|
inline |
Definition at line 47 of file HTTPRequestVerifier.h.
References error, hasPath_, msg_, proxygen::HTTPMessage::setURL(), folly::Range< Iter >::str(), and proxygen::CodecUtil::validateURL().
Referenced by proxygen::HeaderDecodeInfo::onHeader().
|
inline |
Definition at line 62 of file HTTPRequestVerifier.h.
References error, hasScheme_, proxygen::headers::kHttps, msg_, proxygen::HTTPMessage::setSecure(), and proxygen::CodecUtil::validateMethod().
Referenced by proxygen::HeaderDecodeInfo::onHeader().
|
inline |
Definition at line 96 of file HTTPRequestVerifier.h.
References error, hasUpgradeProtocol_, msg_, setHasUpgradeProtocol(), and proxygen::HTTPMessage::setUpgradeProtocol().
Referenced by proxygen::HeaderDecodeInfo::onHeader().
|
inline |
Definition at line 106 of file HTTPRequestVerifier.h.
References proxygen::CONNECT, error, proxygen::HTTPMessage::getMethod(), hasAuthority_, hasMethod_, hasPath_, hasScheme_, hasUpgradeProtocol_, and msg_.
Referenced by proxygen::HeaderDecodeInfo::onHeadersComplete().
std::string proxygen::HTTPRequestVerifier::error |
Definition at line 154 of file HTTPRequestVerifier.h.
Referenced by proxygen::HeaderDecodeInfo::onHeadersComplete(), reset(), setAuthority(), setMethod(), setPath(), setScheme(), setUpgradeProtocol(), and validate().
|
private |
Definition at line 161 of file HTTPRequestVerifier.h.
Referenced by reset(), setAuthority(), setHasAuthority(), and validate().
|
private |
Definition at line 158 of file HTTPRequestVerifier.h.
Referenced by reset(), setHasMethod(), setMethod(), and validate().
|
private |
Definition at line 159 of file HTTPRequestVerifier.h.
Referenced by reset(), setHasPath(), setPath(), and validate().
|
private |
Definition at line 160 of file HTTPRequestVerifier.h.
Referenced by reset(), setHasScheme(), setScheme(), and validate().
|
private |
Definition at line 162 of file HTTPRequestVerifier.h.
Referenced by hasUpgradeProtocol(), reset(), setHasUpgradeProtocol(), setUpgradeProtocol(), and validate().
|
private |
Definition at line 157 of file HTTPRequestVerifier.h.
Referenced by reset(), setAuthority(), setMessage(), setMethod(), setPath(), setScheme(), setUpgradeProtocol(), and validate().