proxygen
HTTPEvent.cpp
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  */
11 
12 #include <ostream>
13 
14 namespace proxygen {
15 
16 std::ostream& operator<<(std::ostream& os, HTTPEvent::Type e) {
17  switch (e) {
19  os << "message_begin";
20  break;
22  os << "headers_complete";
23  break;
25  os << "body";
26  break;
28  os << "chunk_header";
29  break;
31  os << "chunk_complete";
32  break;
34  os << "trailers_complete";
35  break;
37  os << "message_complete";
38  break;
40  os << "uprade";
41  break;
42  }
43 
44  return os;
45 }
46 
47 }
std::ostream & operator<<(std::ostream &os, const HeaderTable &table)