proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
NoPathIndexingStrategy.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/HeaderIndexingStrategy.h
>
13
14
namespace
proxygen
{
15
16
class
NoPathIndexingStrategy
:
public
HeaderIndexingStrategy
{
17
public
:
18
static
const
NoPathIndexingStrategy
*
getInstance
();
19
20
NoPathIndexingStrategy
()
21
:
HeaderIndexingStrategy
() {}
22
23
// For compression simulations we do not want to index :path headers
24
bool
indexHeader
(
const
HPACKHeader
& header)
const override
{
25
if
(header.
name
.
getHeaderCode
() ==
HTTP_HEADER_COLON_PATH
) {
26
return
false
;
27
}
else
{
28
return
HeaderIndexingStrategy::indexHeader
(header);
29
}
30
}
31
};
32
33
}
proxygen::HeaderIndexingStrategy
Definition:
HeaderIndexingStrategy.h:16
proxygen::HPACKHeaderName::getHeaderCode
HTTPHeaderCode getHeaderCode() const
Definition:
HPACKHeaderName.h:114
proxygen::HTTP_HEADER_COLON_PATH
Definition:
HTTPCommonHeaders.h:125
proxygen::HPACKHeader
Definition:
HPACKHeader.h:20
proxygen::HeaderIndexingStrategy::indexHeader
virtual bool indexHeader(const HPACKHeader &header) const
Definition:
HeaderIndexingStrategy.cpp:19
proxygen::HPACKHeader::name
HPACKHeaderName name
Definition:
HPACKHeader.h:82
proxygen::NoPathIndexingStrategy
Definition:
NoPathIndexingStrategy.h:16
proxygen::NoPathIndexingStrategy::getInstance
static const NoPathIndexingStrategy * getInstance()
Definition:
NoPathIndexingStrategy.cpp:14
proxygen
Definition:
ExMessageHandler.h:14
proxygen::NoPathIndexingStrategy::indexHeader
bool indexHeader(const HPACKHeader &header) const override
Definition:
NoPathIndexingStrategy.h:24
proxygen::NoPathIndexingStrategy::NoPathIndexingStrategy
NoPathIndexingStrategy()
Definition:
NoPathIndexingStrategy.h:20
HeaderIndexingStrategy.h
proxygen
lib
http
codec
compress
NoPathIndexingStrategy.h
Generated by
1.8.11