Expose HTTP3_CONTROL_STREAM_TYPE_ID

This commit is contained in:
Evan Rittenhouse 2024-07-26 14:40:44 -05:00
parent a90df30a47
commit 8eebbed0c6
2 changed files with 6 additions and 1 deletions

View File

@ -54,6 +54,11 @@ use quiche::h3::NameValue;
use smallvec::smallvec;
use smallvec::SmallVec;
/// The ID for an HTTP/3 control stream type.
///
/// See https://datatracker.ietf.org/doc/html/rfc9114#name-control-streams.
pub const HTTP3_CONTROL_STREAM_TYPE_ID: u64 = 0x0;
#[derive(Default)]
struct StreamIdAllocator {
id: u64,

View File

@ -49,8 +49,8 @@ use crate::actions::h3::WaitType;
use crate::encode_header_block;
use crate::fake_packet_sent;
use crate::fake_packet_with_stream_fin;
use crate::HTTP3_CONTROL_STREAM_TYPE_ID;
const HTTP3_CONTROL_STREAM_TYPE_ID: u64 = 0x0;
const HTTP3_PUSH_STREAM_TYPE_ID: u64 = 0x1;
const QPACK_ENCODER_STREAM_TYPE_ID: u64 = 0x2;
const QPACK_DECODER_STREAM_TYPE_ID: u64 = 0x3;