proxygen
|
#include <DefaultHTTPCodecFactory.h>
Public Member Functions | |
DefaultHTTPCodecFactory (bool forceHTTP1xCodecTo1_1) | |
~DefaultHTTPCodecFactory () override=default | |
std::unique_ptr< HTTPCodec > | getCodec (const std::string &nextProtocol, TransportDirection direction, bool isTLS) override |
void | setForceHTTP1xCodecTo1_1 (bool forceHTTP1xCodecTo1_1) |
Public Member Functions inherited from proxygen::HTTPCodecFactory | |
HTTPCodecFactory () | |
virtual | ~HTTPCodecFactory () |
Protected Attributes | |
bool | forceHTTP1xCodecTo1_1_ {false} |
Additional Inherited Members | |
Static Public Member Functions inherited from proxygen::HTTPCodecFactory | |
static std::unique_ptr< HTTPCodec > | getCodec (CodecProtocol protocol, TransportDirection direction) |
Definition at line 15 of file DefaultHTTPCodecFactory.h.
|
explicit |
Definition at line 19 of file DefaultHTTPCodecFactory.cpp.
|
overridedefault |
|
overridevirtual |
Get a codec instance
Implements proxygen::HTTPCodecFactory.
Definition at line 24 of file DefaultHTTPCodecFactory.cpp.
References proxygen::ERROR, forceHTTP1xCodecTo1_1_, proxygen::SPDYCodec::getVersion(), proxygen::http2::kProtocolCleartextString, proxygen::http2::kProtocolDraftString, proxygen::http2::kProtocolExperimentalString, proxygen::http2::kProtocolString, and proxygen::HTTP1xCodec::supportsNextProtocol().
Referenced by TEST().
|
inline |
Definition at line 27 of file DefaultHTTPCodecFactory.h.
References forceHTTP1xCodecTo1_1_.
|
protected |
Definition at line 31 of file DefaultHTTPCodecFactory.h.
Referenced by getCodec(), and setForceHTTP1xCodecTo1_1().