proxygen
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 
13 
14 namespace proxygen {
15 
17  public:
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
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 }
virtual bool indexHeader(const HPACKHeader &header) const
static const HeaderIndexingStrategy * getDefaultInstance()