blob: 2641790a847952e15ba233b3caf700a6d612b93a [file] [log] [blame]
bnc3fc60df2019-07-17 11:55:10 -07001// 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
10namespace quic {
11
12// Unidirectional stream types.
13
14// https://quicwg.org/base-drafts/draft-ietf-quic-http.html#unidirectional-streams
15const uint64_t kControlStream = 0x00;
16const uint64_t kServerPushStream = 0x01;
17// https://quicwg.org/base-drafts/draft-ietf-quic-qpack.html#enc-dec-stream-def
18const uint64_t kQpackEncoderStream = 0x02;
19const uint64_t kQpackDecoderStream = 0x03;
20
21// Settings identifiers.
22
23// https://quicwg.org/base-drafts/draft-ietf-quic-http.html#settings-parameters
24const uint64_t kSettingsMaxHeaderListSize = 0x06;
25const uint64_t kSettingsNumPlaceholders = 0x09;
26// https://quicwg.org/base-drafts/draft-ietf-quic-qpack.html#configuration
27const uint64_t kSettingsQpackMaxTableCapacity = 0x01;
28const uint64_t kSettingsQpackBlockedStream = 0x07;
29
30} // namespace quic
31
32#endif // QUICHE_QUIC_CORE_HTTP_HTTP_CONSTANTS_H_