proxygen
|
#include <HTTPDefaultSessionCodecFactory.h>
Public Member Functions | |
HTTPDefaultSessionCodecFactory (const AcceptorConfiguration &accConfig) | |
~HTTPDefaultSessionCodecFactory () override | |
std::unique_ptr< HTTPCodec > | getCodec (const std::string &nextProtocol, TransportDirection direction, bool isTLS) override |
Public Member Functions inherited from proxygen::HTTPCodecFactory | |
HTTPCodecFactory () | |
virtual | ~HTTPCodecFactory () |
Protected Attributes | |
const AcceptorConfiguration & | accConfig_ |
folly::Optional< SPDYVersion > | alwaysUseSPDYVersion_ {} |
folly::Optional< bool > | alwaysUseHTTP2_ {} |
Additional Inherited Members | |
Static Public Member Functions inherited from proxygen::HTTPCodecFactory | |
static std::unique_ptr< HTTPCodec > | getCodec (CodecProtocol protocol, TransportDirection direction) |
Definition at line 18 of file HTTPDefaultSessionCodecFactory.h.
|
explicit |
Definition at line 19 of file HTTPDefaultSessionCodecFactory.cpp.
References alwaysUseHTTP2_, alwaysUseSPDYVersion_, proxygen::SPDYCodec::getVersion(), proxygen::http2::kProtocolCleartextString, proxygen::AcceptorConfiguration::plaintextProtocol, and version.
|
inlineoverride |
Definition at line 22 of file HTTPDefaultSessionCodecFactory.h.
References getCodec(), and string.
|
overridevirtual |
Get a codec instance
Implements proxygen::HTTPCodecFactory.
Definition at line 31 of file HTTPDefaultSessionCodecFactory.cpp.
References accConfig_, proxygen::AcceptorConfiguration::allowedPlaintextUpgradeProtocols, alwaysUseHTTP2_, alwaysUseSPDYVersion_, codec, proxygen::SPDYCodec::getVersion(), proxygen::http2::kProtocolDraftString, proxygen::http2::kProtocolExperimentalString, proxygen::http2::kProtocolString, folly::gen::move, proxygen::AcceptorConfiguration::spdyCompressionLevel, proxygen::HTTP1xCodec::supportsNextProtocol(), folly::Optional< Value >::value(), and version.
Referenced by TEST(), and ~HTTPDefaultSessionCodecFactory().
|
protected |
Definition at line 32 of file HTTPDefaultSessionCodecFactory.h.
Referenced by getCodec().
|
protected |
Definition at line 34 of file HTTPDefaultSessionCodecFactory.h.
Referenced by getCodec(), and HTTPDefaultSessionCodecFactory().
|
protected |
Definition at line 33 of file HTTPDefaultSessionCodecFactory.h.
Referenced by getCodec(), and HTTPDefaultSessionCodecFactory().