proxygen
StubRequestHandlerAdaptor Struct Reference
Inheritance diagram for StubRequestHandlerAdaptor:
proxygen::RequestHandlerAdaptor proxygen::HTTPTransactionHandler proxygen::ResponseHandler

Public Member Functions

void sendHeaders (HTTPMessage &) noexceptoverride
 
void sendEOM () noexceptoverride
 
- Public Member Functions inherited from proxygen::RequestHandlerAdaptor
 RequestHandlerAdaptor (RequestHandler *requestHandler)
 
- Public Member Functions inherited from proxygen::HTTPTransactionHandler
virtual void onPushedTransaction (HTTPTransaction *) noexcept
 
virtual void onGoaway (ErrorCode) noexcept
 
virtual ~HTTPTransactionHandler ()
 
- Public Member Functions inherited from proxygen::ResponseHandler
 ResponseHandler (RequestHandler *upstream)
 
virtual ~ResponseHandler ()
 
HTTPTransactiongetTransaction () const noexcept
 

Public Attributes

bool headersSent_ {false}
 

Additional Inherited Members

- Protected Attributes inherited from proxygen::ResponseHandler
RequestHandlerupstream_ {nullptr}
 
HTTPTransactiontxn_ {nullptr}
 

Detailed Description

Definition at line 20 of file RequestHandlerAdaptorTest.cpp.

Member Function Documentation

void StubRequestHandlerAdaptor::sendEOM ( )
inlineoverridevirtualnoexcept

Reimplemented from proxygen::RequestHandlerAdaptor.

Definition at line 27 of file RequestHandlerAdaptorTest.cpp.

27  {
28  // prevent using tx_
29  }
void StubRequestHandlerAdaptor::sendHeaders ( HTTPMessage msg)
inlineoverridevirtualnoexcept

NOTE: We take response message as non-const reference, to allow filters between your handler and client to be able to modify response if they want to.

eg. a compression filter might want to change the content-encoding

Reimplemented from proxygen::RequestHandlerAdaptor.

Definition at line 23 of file RequestHandlerAdaptorTest.cpp.

23  {
24  headersSent_ = true;
25  }

Member Data Documentation

bool StubRequestHandlerAdaptor::headersSent_ {false}

Definition at line 31 of file RequestHandlerAdaptorTest.cpp.


The documentation for this struct was generated from the following file: