proxygen
HTTP2Constants.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 namespace proxygen { namespace http2 {
13 
15  // _SPDY_INVALID_STREAM is SPDY specific, filter it out
16  if (code == ErrorCode::_SPDY_INVALID_STREAM) {
18  }
19  return code;
20 }
21 
23  return filterInvalidStream(code);
24 }
25 
27  return filterInvalidStream(code);
28 }
29 
31 
42 
44 
46 const uint32_t kMaxFramePayloadLength = (1u << 24) - 1;
47 const uint32_t kMaxStreamID = (1u << 31) - 1;
48 const uint32_t kInitialWindow = (1u << 16) - 1;
49 const uint32_t kMaxWindowUpdateSize = (1u << 31) - 1;
50 const uint32_t kMaxHeaderTableSize = (1u << 16);
51 
52 const uint32_t kMaxAuthenticatorBufSize = 0x20000; // 128k
53 
54 const std::string kConnectionPreface("PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n");
55 
56 const std::string kProtocolString("h2");
57 const std::string kProtocolDraftString("h2-14");
60 const std::string kProtocolSettingsHeader("HTTP2-Settings");
61 
62 }}
const uint32_t kMaxAuthenticatorBufSize
const uint32_t kMaxStreamID
const uint32_t kInitialWindow
const uint32_t kFramePrioritySize
const uint32_t kFrameHeaderSize
const std::string kProtocolCleartextString
const uint32_t kFrameAltSvcSizeBase
const std::string kProtocolString
ErrorCode errorCodeToGoaway(ErrorCode code)
const uint32_t kMaxFramePayloadLength
const std::string kProtocolDraftString
const uint32_t kMaxWindowUpdateSize
const uint32_t kFrameCertificateSizeBase
const std::string kProtocolExperimentalString
const uint32_t kMaxFramePayloadLengthMin
const uint32_t kMaxHeaderTableSize
const uint32_t kFrameCertificateRequestSizeBase
ErrorCode errorCodeToReset(ErrorCode code)
const uint32_t kFrameGoawaySize
const uint32_t kFrameWindowUpdateSize
const uint32_t kFrameHeadersBaseMaxSize
const std::string kProtocolSettingsHeader
const uint32_t kFramePushPromiseSize
const char * string
Definition: Conv.cpp:212
const std::string kConnectionPreface
const uint32_t kFramePingSize
ErrorCode filterInvalidStream(ErrorCode code)
const uint32_t kFrameStreamIDSize
const uint32_t kFrameRstStreamSize