proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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
*/
10
#include <
proxygen/lib/http/session/HTTPEvent.h
>
11
12
#include <ostream>
13
14
namespace
proxygen
{
15
16
std::ostream&
operator<<
(std::ostream& os,
HTTPEvent::Type
e) {
17
switch
(e) {
18
case
HTTPEvent::Type::MESSAGE_BEGIN
:
19
os <<
"message_begin"
;
20
break
;
21
case
HTTPEvent::Type::HEADERS_COMPLETE
:
22
os <<
"headers_complete"
;
23
break
;
24
case
HTTPEvent::Type::BODY
:
25
os <<
"body"
;
26
break
;
27
case
HTTPEvent::Type::CHUNK_HEADER
:
28
os <<
"chunk_header"
;
29
break
;
30
case
HTTPEvent::Type::CHUNK_COMPLETE
:
31
os <<
"chunk_complete"
;
32
break
;
33
case
HTTPEvent::Type::TRAILERS_COMPLETE
:
34
os <<
"trailers_complete"
;
35
break
;
36
case
HTTPEvent::Type::MESSAGE_COMPLETE
:
37
os <<
"message_complete"
;
38
break
;
39
case
HTTPEvent::Type::UPGRADE
:
40
os <<
"uprade"
;
41
break
;
42
}
43
44
return
os;
45
}
46
47
}
proxygen::HTTPEvent::Type::MESSAGE_COMPLETE
proxygen::HTTPEvent::Type::BODY
proxygen::operator<<
std::ostream & operator<<(std::ostream &os, const HeaderTable &table)
Definition:
HeaderTable.cpp:254
proxygen::HTTPEvent::Type::HEADERS_COMPLETE
proxygen::HTTPEvent::Type
Type
Definition:
HTTPEvent.h:29
proxygen::HTTPEvent::Type::CHUNK_COMPLETE
HTTPEvent.h
proxygen::HTTPEvent::Type::MESSAGE_BEGIN
proxygen::HTTPEvent::Type::CHUNK_HEADER
proxygen::HTTPEvent::Type::TRAILERS_COMPLETE
proxygen
Definition:
ExMessageHandler.h:14
proxygen::HTTPEvent::Type::UPGRADE
proxygen
lib
http
session
HTTPEvent.cpp
Generated by
1.8.11