proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
HeaderIndexingStrategy.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/compress/HPACKHeader.h
>
13
14
namespace
proxygen
{
15
16
class
HeaderIndexingStrategy
{
17
public
:
18
static
const
HeaderIndexingStrategy
*
getDefaultInstance
();
19
20
// Explicitly defined constructor/destructor
21
// Destructor is virtual so that a subclass can provide an implementation
22
// and that it will be correctly called even when aliased by a
23
// HPACKEnoderStrat* var
24
HeaderIndexingStrategy
() {}
25
virtual
~HeaderIndexingStrategy
() {}
26
27
// Virtual method for subclasses to implement as they see fit
28
// Returns a bool that indicates whether the specified header should be
29
// indexed
30
virtual
bool
indexHeader
(
const
HPACKHeader
& header)
const
;
31
};
32
33
}
proxygen::HeaderIndexingStrategy
Definition:
HeaderIndexingStrategy.h:16
proxygen::HeaderIndexingStrategy::~HeaderIndexingStrategy
virtual ~HeaderIndexingStrategy()
Definition:
HeaderIndexingStrategy.h:25
proxygen::HeaderIndexingStrategy::HeaderIndexingStrategy
HeaderIndexingStrategy()
Definition:
HeaderIndexingStrategy.h:24
HPACKHeader.h
proxygen::HPACKHeader
Definition:
HPACKHeader.h:20
proxygen::HeaderIndexingStrategy::indexHeader
virtual bool indexHeader(const HPACKHeader &header) const
Definition:
HeaderIndexingStrategy.cpp:19
proxygen::HeaderIndexingStrategy::getDefaultInstance
static const HeaderIndexingStrategy * getDefaultInstance()
Definition:
HeaderIndexingStrategy.cpp:14
proxygen
Definition:
ExMessageHandler.h:14
proxygen
lib
http
codec
compress
HeaderIndexingStrategy.h
Generated by
1.8.11