proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
HTTPDefaultSessionCodecFactory.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/HTTPCodecFactory.h
>
13
#include <
proxygen/lib/http/codec/SPDYVersion.h
>
14
#include <
proxygen/lib/services/AcceptorConfiguration.h
>
15
16
namespace
proxygen
{
17
18
class
HTTPDefaultSessionCodecFactory
:
public
HTTPCodecFactory
{
19
public
:
20
explicit
HTTPDefaultSessionCodecFactory
(
21
const
AcceptorConfiguration
& accConfig);
22
~HTTPDefaultSessionCodecFactory
()
override
{}
23
27
std::unique_ptr<HTTPCodec>
getCodec
(
const
std::string
& nextProtocol,
28
TransportDirection
direction,
29
bool
isTLS)
override
;
30
31
protected
:
32
const
AcceptorConfiguration
&
accConfig_
;
33
folly::Optional<SPDYVersion>
alwaysUseSPDYVersion_
{};
34
folly::Optional<bool>
alwaysUseHTTP2_
{};
35
};
36
37
}
// proxygen
HTTPCodecFactory.h
SPDYVersion.h
proxygen::HTTPDefaultSessionCodecFactory::~HTTPDefaultSessionCodecFactory
~HTTPDefaultSessionCodecFactory() override
Definition:
HTTPDefaultSessionCodecFactory.h:22
proxygen::AcceptorConfiguration
Definition:
AcceptorConfiguration.h:33
proxygen::HTTPDefaultSessionCodecFactory::alwaysUseSPDYVersion_
folly::Optional< SPDYVersion > alwaysUseSPDYVersion_
Definition:
HTTPDefaultSessionCodecFactory.h:33
folly::Optional< SPDYVersion >
proxygen::HTTPDefaultSessionCodecFactory
Definition:
HTTPDefaultSessionCodecFactory.h:18
proxygen::HTTPDefaultSessionCodecFactory::accConfig_
const AcceptorConfiguration & accConfig_
Definition:
HTTPDefaultSessionCodecFactory.h:32
proxygen::TransportDirection
TransportDirection
Definition:
TransportDirection.h:17
string
const char * string
Definition:
Conv.cpp:212
AcceptorConfiguration.h
proxygen::HTTPDefaultSessionCodecFactory::getCodec
std::unique_ptr< HTTPCodec > getCodec(const std::string &nextProtocol, TransportDirection direction, bool isTLS) override
Definition:
HTTPDefaultSessionCodecFactory.cpp:31
proxygen
Definition:
ExMessageHandler.h:14
proxygen::HTTPCodecFactory
Definition:
HTTPCodecFactory.h:20
proxygen::HTTPDefaultSessionCodecFactory::HTTPDefaultSessionCodecFactory
HTTPDefaultSessionCodecFactory(const AcceptorConfiguration &accConfig)
Definition:
HTTPDefaultSessionCodecFactory.cpp:19
proxygen::HTTPDefaultSessionCodecFactory::alwaysUseHTTP2_
folly::Optional< bool > alwaysUseHTTP2_
Definition:
HTTPDefaultSessionCodecFactory.h:34
proxygen
lib
http
session
HTTPDefaultSessionCodecFactory.h
Generated by
1.8.11