proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
12
#include <
proxygen/lib/http/codec/HTTPCodec.h
>
13
#include <
proxygen/lib/http/codec/TransportDirection.h
>
14
15
namespace
proxygen
{
16
20
class
HTTPCodecFactory
{
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
HTTPCodec.h
proxygen::HTTPCodecFactory::getCodec
virtual std::unique_ptr< HTTPCodec > getCodec(const std::string &protocolHint, TransportDirection direction, bool isTLS)=0
proxygen::HTTPCodecFactory::~HTTPCodecFactory
virtual ~HTTPCodecFactory()
Definition:
HTTPCodecFactory.h:23
TransportDirection.h
proxygen::TransportDirection
TransportDirection
Definition:
TransportDirection.h:17
proxygen::HTTPCodecFactory::HTTPCodecFactory
HTTPCodecFactory()
Definition:
HTTPCodecFactory.h:22
string
const char * string
Definition:
Conv.cpp:212
proxygen
Definition:
ExMessageHandler.h:14
proxygen::HTTPCodecFactory
Definition:
HTTPCodecFactory.h:20
proxygen::CodecProtocol
CodecProtocol
Definition:
CodecProtocol.h:19
proxygen
lib
http
codec
HTTPCodecFactory.h
Generated by
1.8.11