mirror of
https://github.com/cloudflare/quiche.git
synced 2025-04-20 08:34:25 +08:00
Expose HTTP3_CONTROL_STREAM_TYPE_ID
This commit is contained in:
parent
a90df30a47
commit
8eebbed0c6
@ -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,
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user