proxygen
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 
13 
14 namespace proxygen {
15 
17  public:
18  static const NoPathIndexingStrategy* getInstance();
19 
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 {
29  }
30  }
31 };
32 
33 }
HTTPHeaderCode getHeaderCode() const
virtual bool indexHeader(const HPACKHeader &header) const
HPACKHeaderName name
Definition: HPACKHeader.h:82
static const NoPathIndexingStrategy * getInstance()
bool indexHeader(const HPACKHeader &header) const override