proxygen
|
Public Member Functions | |
HTTPTargetSessionAcceptor (const AcceptorConfiguration &accConfig) | |
HTTPTransaction::Handler * | newHandler (HTTPTransaction &, HTTPMessage *) noexceptoverride |
void | onCreate (const HTTPSessionBase &session) override |
void | connectionReady (AsyncSocket::UniquePtr sock, const SocketAddress &clientAddr, const std::string &nextProtocolName, SecureTransportType secureTransportType, wangle::TransportInfo &tinfo) |
void | onSessionCreationError (ProxygenError) override |
Public Member Functions inherited from proxygen::HTTPSessionAcceptor | |
HTTPSessionAcceptor (const AcceptorConfiguration &accConfig) | |
HTTPSessionAcceptor (const AcceptorConfiguration &accConfig, std::shared_ptr< HTTPCodecFactory > codecFactory) | |
~HTTPSessionAcceptor () override | |
void | setDefaultErrorPage (std::unique_ptr< HTTPErrorPage > generator) |
const HTTPErrorPage * | getDefaultErrorPage () const |
void | setDiagnosticErrorPage (std::unique_ptr< HTTPErrorPage > generator) |
const HTTPErrorPage * | getDiagnosticErrorPage () const |
virtual const HTTPErrorPage * | getErrorPage (const folly::SocketAddress &addr) const |
void | setCodecFactory (std::shared_ptr< HTTPCodecFactory > codecFactory) |
std::shared_ptr< HTTPCodecFactory > | getCodecFactory () |
void | setSessionInfoCallback (HTTPSession::InfoCallback *cb) |
virtual bool | getHttp2PrioritiesEnabled () |
Public Member Functions inherited from proxygen::HTTPAcceptor | |
HTTPAcceptor (const AcceptorConfiguration &accConfig) | |
bool | isInternal () const |
virtual const WheelTimerInstance & | getTransactionTimeoutSet () |
void | init (folly::AsyncServerSocket *serverSocket, folly::EventBase *eventBase, wangle::SSLStats *=nullptr) override |
const AcceptorConfiguration & | getConfig () const |
Public Member Functions inherited from wangle::Acceptor | |
Acceptor (const ServerSocketConfig &accConfig) | |
~Acceptor () override | |
virtual void | setSSLCacheProvider (const std::shared_ptr< SSLCacheProvider > &cacheProvider) |
virtual void | resetSSLContextConfigs () |
void | addSSLContextConfig (const SSLContextConfig &sslCtxConfig) |
SSLContextManager * | getSSLContextManager () const |
virtual void | setTLSTicketSecrets (const std::vector< std::string > &oldSecrets, const std::vector< std::string > ¤tSecrets, const std::vector< std::string > &newSecrets) |
uint32_t | getNumConnections () const |
virtual folly::EventBase * | getEventBase () const |
virtual wangle::ConnectionManager * | getConnectionManager () |
void | addConnection (wangle::ManagedConnection *connection) |
State | getState () const |
std::chrono::milliseconds | getConnTimeout () const |
const std::string & | getName () const |
std::chrono::milliseconds | getSSLHandshakeTimeout () const |
void | setGracefulShutdownTimeout (std::chrono::milliseconds gracefulShutdown) |
std::chrono::milliseconds | getGracefulShutdownTimeout () const |
virtual void | forceStop () |
bool | isSSL () const |
const ServerSocketConfig & | getConfig () const |
virtual void | onDoneAcceptingConnection (int fd, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime) noexcept |
void | processEstablishedConnection (int fd, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) noexcept |
virtual void | startHandshakeManager (folly::AsyncSSLSocket::UniquePtr sslSock, Acceptor *acceptor, const folly::SocketAddress &clientAddr, std::chrono::steady_clock::time_point acceptTime, TransportInfo &tinfo) noexcept |
void | drainAllConnections () |
virtual void | drainConnections (double pctToDrain) |
void | dropAllConnections () |
virtual void | dropConnections (double pctToDrop) |
virtual void | plaintextConnectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocolName, SecureTransportType secureTransportType, TransportInfo &tinfo) |
void | connectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocolName, SecureTransportType secureTransportType, TransportInfo &tinfo) |
virtual void | sslConnectionReady (folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress &clientAddr, const std::string &nextProtocol, SecureTransportType secureTransportType, TransportInfo &tinfo) |
virtual void | sslConnectionError (const folly::exception_wrapper &ex) |
virtual void | updateSSLStats (const folly::AsyncTransportWrapper *, std::chrono::milliseconds, SSLErrorEnum) noexcept |
Public Member Functions inherited from folly::AsyncServerSocket::AcceptCallback | |
virtual | ~AcceptCallback ()=default |
virtual void | acceptStarted () noexcept |
Public Member Functions inherited from wangle::ConnectionManager::Callback | |
virtual | ~Callback ()=default |
Public Member Functions inherited from folly::AsyncUDPServerSocket::Callback | |
virtual void | onListenPaused () noexcept |
virtual void | onListenResumed () noexcept |
virtual | ~Callback ()=default |
Public Attributes | |
uint32_t | sessionsCreated_ {0} |
uint32_t | sessionCreationErrors_ {0} |
std::string | expectedProto_ |
Definition at line 32 of file HTTPSessionAcceptorTest.cpp.
|
inlineexplicit |
Definition at line 34 of file HTTPSessionAcceptorTest.cpp.
|
inline |
Definition at line 49 of file HTTPSessionAcceptorTest.cpp.
References wangle::Acceptor::connectionReady(), and folly::gen::move.
|
inlineoverridevirtualnoexcept |
Create 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::HTTPSessionAcceptor.
Definition at line 38 of file HTTPSessionAcceptorTest.cpp.
|
inlineoverridevirtual |
Reimplemented from proxygen::HTTPSessionBase::InfoCallback.
Definition at line 43 of file HTTPSessionAcceptorTest.cpp.
References EXPECT_EQ, proxygen::HTTPSessionBase::getCodecProtocol(), and proxygen::getCodecProtocolString().
|
inlineoverridevirtual |
Reimplemented from proxygen::HTTPSessionAcceptor.
Definition at line 61 of file HTTPSessionAcceptorTest.cpp.
std::string HTTPTargetSessionAcceptor::expectedProto_ |
Definition at line 67 of file HTTPSessionAcceptorTest.cpp.
uint32_t HTTPTargetSessionAcceptor::sessionCreationErrors_ {0} |
Definition at line 66 of file HTTPSessionAcceptorTest.cpp.
uint32_t HTTPTargetSessionAcceptor::sessionsCreated_ {0} |
Definition at line 65 of file HTTPSessionAcceptorTest.cpp.