20 bool forceHTTP1xCodecTo1_1)
21 : forceHTTP1xCodecTo1_1_(forceHTTP1xCodecTo1_1) {
31 return std::make_unique<SPDYCodec>(direction,
37 return std::make_unique<HTTP2Codec>(direction);
39 if (!chosenProto.empty() &&
41 LOG(
ERROR) <<
"Chosen upstream protocol " <<
42 "\"" << chosenProto <<
"\" is unimplemented. " <<
43 "Attempting to use HTTP/1.1";
46 return std::make_unique<HTTP1xCodec>(direction,
uint8_t getVersion() const
const std::string kProtocolCleartextString
const std::string kProtocolString
bool forceHTTP1xCodecTo1_1_
static bool supportsNextProtocol(const std::string &npn)
const std::string kProtocolDraftString
const std::string kProtocolExperimentalString
std::unique_ptr< HTTPCodec > getCodec(const std::string &nextProtocol, TransportDirection direction, bool isTLS) override
DefaultHTTPCodecFactory(bool forceHTTP1xCodecTo1_1)