proxygen
proxygen::HTTPUpstreamSessionController Class Reference

#include <HTTPSessionController.h>

Inheritance diagram for proxygen::HTTPUpstreamSessionController:
proxygen::HTTPSessionController proxygen::MockUpstreamController

Private Member Functions

HTTPTransactionHandlergetRequestHandler (HTTPTransaction &, HTTPMessage *) final
 
HTTPTransactionHandlergetParseErrorHandler (HTTPTransaction *, const HTTPException &, const folly::SocketAddress &) final
 
HTTPTransactionHandlergetTransactionTimeoutHandler (HTTPTransaction *, const folly::SocketAddress &) final
 

Additional Inherited Members

- Public Member Functions inherited from proxygen::HTTPSessionController
virtual ~HTTPSessionController ()
 
virtual void attachSession (HTTPSessionBase *session)=0
 
virtual void detachSession (const HTTPSessionBase *session)=0
 
virtual void onSessionCodecChange (HTTPSessionBase *)
 
virtual std::chrono::milliseconds getGracefulShutdownTimeout () const
 
virtual std::chrono::milliseconds getSessionFlowControlTimeout () const
 
virtual const HeaderIndexingStrategygetHeaderIndexingStrategy () const
 

Detailed Description

Definition at line 102 of file HTTPSessionController.h.

Member Function Documentation

HTTPTransactionHandler* proxygen::HTTPUpstreamSessionController::getParseErrorHandler ( HTTPTransaction ,
const HTTPException ,
const folly::SocketAddress  
)
inlinefinalprivatevirtual

Will be invoked when HTTPSession is unable to parse a new request on the connection because of bad input.

error contains specific information about what went wrong

Implements proxygen::HTTPSessionController.

Definition at line 115 of file HTTPSessionController.h.

References folly::FATAL.

118  {
119  LOG(FATAL) << "Unreachable";
120  return nullptr;
121  }
HTTPTransactionHandler* proxygen::HTTPUpstreamSessionController::getRequestHandler ( HTTPTransaction txn,
HTTPMessage msg 
)
inlinefinalprivatevirtual

Will be invoked whenever HTTPSession successfully parses a request

The controller creates a Handler for a new transaction. The transaction and HTTP message (request) are passed so the implementation can construct different handlers based on these. The transaction will be explicitly set on the handler later via setTransaction. The request message will be passed in onHeadersComplete.

Implements proxygen::HTTPSessionController.

Definition at line 103 of file HTTPSessionController.h.

References folly::FATAL.

104  {
105  LOG(FATAL) << "Unreachable";
106  return nullptr;
107  }
HTTPTransactionHandler* proxygen::HTTPUpstreamSessionController::getTransactionTimeoutHandler ( HTTPTransaction ,
const folly::SocketAddress  
)
inlinefinalprivatevirtual

Will be invoked when HTTPSession times out parsing a new request.

Implements proxygen::HTTPSessionController.

Definition at line 126 of file HTTPSessionController.h.

References folly::FATAL.

128  {
129  LOG(FATAL) << "Unreachable";
130  return nullptr;
131  }

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