proxygen
HTTPCodecFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-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
11 
14 
15 namespace proxygen {
16 
21  public:
22  explicit HTTPCodecFactory() {}
23  virtual ~HTTPCodecFactory() {}
24 
28  virtual std::unique_ptr<HTTPCodec> getCodec(const std::string& protocolHint,
29  TransportDirection direction,
30  bool isTLS) = 0;
31 
32  static std::unique_ptr<HTTPCodec> getCodec(CodecProtocol protocol,
33  TransportDirection direction);
34 };
35 
36 } // proxygen
virtual std::unique_ptr< HTTPCodec > getCodec(const std::string &protocolHint, TransportDirection direction, bool isTLS)=0
const char * string
Definition: Conv.cpp:212