proxygen
DefaultHTTPCodecFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
10 #pragma once
12 
13 namespace proxygen {
14 
16  public:
17  explicit DefaultHTTPCodecFactory(bool forceHTTP1xCodecTo1_1);
18  ~DefaultHTTPCodecFactory() override = default;
19 
23  std::unique_ptr<HTTPCodec> getCodec(const std::string& nextProtocol,
24  TransportDirection direction,
25  bool isTLS) override;
26 
27  void setForceHTTP1xCodecTo1_1(bool forceHTTP1xCodecTo1_1) {
28  forceHTTP1xCodecTo1_1_ = forceHTTP1xCodecTo1_1;
29  }
30  protected:
32 };
33 
34 } // proxygen
~DefaultHTTPCodecFactory() override=default
void setForceHTTP1xCodecTo1_1(bool forceHTTP1xCodecTo1_1)
const char * string
Definition: Conv.cpp:212
std::unique_ptr< HTTPCodec > getCodec(const std::string &nextProtocol, TransportDirection direction, bool isTLS) override
DefaultHTTPCodecFactory(bool forceHTTP1xCodecTo1_1)