proxygen
SPDYConstants.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 
12 #include <folly/Optional.h>
15 #include <string>
16 
17 namespace proxygen { namespace spdy {
18 
19 enum FrameType {
21  SYN_REPLY = 2,
23  SETTINGS = 4,
24  NOOP = 5,
25  PING = 6,
26  GOAWAY = 7,
27  HEADERS = 8,
29  // The CREDENTIAL frame is removed in SPDY/3.1
31 };
32 
33 enum CtrlFlag {
37 };
38 
42 };
43 
48 };
49 
50 enum SettingsId {
59 };
60 
72  // The following status codes were added in SPDY/3
73  // and are not supported in SPDY/2
78 };
79 
84  GOAWAY_OK = 0,
87  // Only for SPDY/3.1 for connection-level flow control errors
89 };
90 
91 // Functions
92 
97 
102 
103 // Constants
104 
105 extern const uint32_t kInitialWindow;
106 extern const uint32_t kMaxConcurrentStreams;
107 extern const uint32_t kMaxFrameLength;
108 
111 
112 extern const std::string httpVersion;
113 
114 extern const std::string kNameVersionv2;
115 extern const std::string kNameVersionv3;
116 extern const std::string kNameStatusv2;
117 extern const std::string kNameStatusv3;
118 extern const std::string kNameMethodv2;
119 extern const std::string kNameMethodv3;
120 extern const std::string kNamePathv2;
121 extern const std::string kNamePathv3;
122 extern const std::string kNameSchemev2;
123 extern const std::string kNameSchemev3;
124 extern const std::string kNameHostv3;
125 
126 extern const std::string kVersionStrv2;
127 extern const std::string kVersionStrv3;
128 extern const std::string kVersionStrv31;
129 
130 extern const size_t SPDY_PRIO_SHIFT_FACTOR;
131 
132 }}
const std::string kVersionStrv3
const uint32_t kMaxFrameLength
const std::string kSessionProtoNameSPDY3
const size_t SPDY_PRIO_SHIFT_FACTOR
const std::string kNamePathv3
ResetStatusCode errorCodeToReset(ErrorCode code)
const std::string kVersionStrv31
const std::string kSessionProtoNameSPDY2
const std::string kNameMethodv2
const std::string kNameStatusv2
ErrorCode goawayToErrorCode(GoawayStatusCode code)
const std::string kNameSchemev2
const std::string kNameMethodv3
folly::Optional< proxygen::SettingsId > spdyToHttpSettingsId(proxygen::spdy::SettingsId id)
const std::string kNameVersionv3
GoawayStatusCode errorCodeToGoaway(ErrorCode code)
const std::string kNameHostv3
const std::string httpVersion
const std::string kNamePathv2
const std::string kNameStatusv3
folly::Optional< proxygen::spdy::SettingsId > httpToSpdySettingsId(proxygen::SettingsId id)
const std::string kNameVersionv2
const char * string
Definition: Conv.cpp:212
const std::string kNameSchemev3
const uint32_t kMaxConcurrentStreams
ErrorCode rstToErrorCode(uint32_t code)
const uint32_t kInitialWindow
const std::string kVersionStrv2