bnc | 3fc60df | 2019-07-17 11:55:10 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef QUICHE_QUIC_CORE_HTTP_HTTP_CONSTANTS_H_ |
| 6 | #define QUICHE_QUIC_CORE_HTTP_HTTP_CONSTANTS_H_ |
| 7 | |
| 8 | #include <cstdint> |
| 9 | |
| 10 | namespace quic { |
| 11 | |
| 12 | // Unidirectional stream types. |
| 13 | |
| 14 | // https://quicwg.org/base-drafts/draft-ietf-quic-http.html#unidirectional-streams |
| 15 | const uint64_t kControlStream = 0x00; |
| 16 | const uint64_t kServerPushStream = 0x01; |
| 17 | // https://quicwg.org/base-drafts/draft-ietf-quic-qpack.html#enc-dec-stream-def |
| 18 | const uint64_t kQpackEncoderStream = 0x02; |
| 19 | const uint64_t kQpackDecoderStream = 0x03; |
| 20 | |
| 21 | // Settings identifiers. |
| 22 | |
| 23 | // https://quicwg.org/base-drafts/draft-ietf-quic-http.html#settings-parameters |
| 24 | const uint64_t kSettingsMaxHeaderListSize = 0x06; |
| 25 | const uint64_t kSettingsNumPlaceholders = 0x09; |
| 26 | // https://quicwg.org/base-drafts/draft-ietf-quic-qpack.html#configuration |
| 27 | const uint64_t kSettingsQpackMaxTableCapacity = 0x01; |
| 28 | const uint64_t kSettingsQpackBlockedStream = 0x07; |
| 29 | |
| 30 | } // namespace quic |
| 31 | |
| 32 | #endif // QUICHE_QUIC_CORE_HTTP_HTTP_CONSTANTS_H_ |