proxygen
|
Private Member Functions | |
void | onRequest (std::unique_ptr< HTTPMessage >) noexceptoverride |
void | onBody (std::unique_ptr< folly::IOBuf >) noexceptoverride |
void | onUpgrade (UpgradeProtocol) noexceptoverride |
void | onEOM () noexceptoverride |
void | requestComplete () noexceptoverride |
void | onError (ProxygenError) noexceptoverride |
Additional Inherited Members | |
Public Member Functions inherited from proxygen::RequestHandler | |
virtual void | setResponseHandler (ResponseHandler *handler) noexcept |
virtual void | onEgressPaused () noexcept |
virtual void | onEgressResumed () noexcept |
virtual bool | canHandleExpect () noexcept |
virtual ExMessageHandler * | getExHandler () noexcept |
virtual ResponseHandler * | getDownstream () noexcept |
virtual | ~RequestHandler () |
Protected Attributes inherited from proxygen::RequestHandler | |
ResponseHandler * | downstream_ {nullptr} |
Definition at line 206 of file HTTPServerTest.cpp.
|
inlineoverrideprivatevirtualnoexcept |
Invoked when we get part of body for the request.
Implements proxygen::RequestHandler.
Definition at line 209 of file HTTPServerTest.cpp.
|
inlineoverrideprivatevirtualnoexcept |
Invoked when we finish receiving the body.
Implements proxygen::RequestHandler.
Definition at line 213 of file HTTPServerTest.cpp.
References proxygen::ResponseBuilder::body(), folly::IOBuf::copyBuffer(), folly::ssl::OpenSSLCertUtils::getCommonName(), proxygen::ResponseBuilder::header(), proxygen::ResponseBuilder::sendWithEOM(), proxygen::ResponseBuilder::status(), string, and folly::Optional< Value >::value_or().
|
inlineoverrideprivatevirtualnoexcept |
Request failed. Maybe because of read/write error on socket or client not being able to send request in time.
NOTE: Can be invoked at any time (except for before onRequest).
No more callbacks will be invoked after this. You should clean up after yourself.
Implements proxygen::RequestHandler.
Definition at line 229 of file HTTPServerTest.cpp.
|
inlineoverrideprivatevirtualnoexcept |
Invoked when we have successfully fetched headers from client. This will always be the first callback invoked on your handler.
Implements proxygen::RequestHandler.
Definition at line 207 of file HTTPServerTest.cpp.
|
inlineoverrideprivatevirtualnoexcept |
Invoked when the session has been upgraded to a different protocol
Implements proxygen::RequestHandler.
Definition at line 210 of file HTTPServerTest.cpp.
|
inlineoverrideprivatevirtualnoexcept |
Invoked when request processing has been completed and nothing more needs to be done. This may be a good place to log some stats and clean up resources. This is distinct from onEOM() because it is invoked after the response is fully sent. Once this callback has been received, downstream_
should be considered invalid.
Implements proxygen::RequestHandler.
Definition at line 227 of file HTTPServerTest.cpp.