proxygen
CompressionUtils.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018-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 
14 
15 #include <vector>
16 #include <string>
17 
18 namespace proxygen {
19 namespace compress {
20 
21 // Convert an HTTPMessage into a format that can be passed to a HeaderCodec
22 std::vector<Header> prepareMessageForCompression(
23  const HTTPMessage& msg,
24  std::vector<std::string>& cookies);
25 
26 }
27 
28 // Compare two HTTPMessage's for equality
29 bool operator==(const HTTPMessage& msg1, const HTTPMessage& msg2);
30 
31 }
bool operator==(const HTTPMessage &msg1, const HTTPMessage &msg2)
std::vector< compress::Header > prepareMessageForCompression(const HTTPMessage &msg, std::vector< string > &cookies)