irox_networking/http/
h2.rs

1// SPDX-License-Identifier: MIT
2// Copyright 2023 IROX Contributors
3//
4
5use irox_structs::Struct;
6
7pub const MAX_FRAME_LEN: usize = (1 << 24) - 1;
8
9#[derive(Struct)]
10pub struct H2Frame {
11    pub len: u32,
12    pub ty: u8,
13    pub flags: u8,
14    // reserved is the upper bit of the stream identifier and will always be '0'
15    // pub reserved: bool,
16    pub stream_identifier: u32,
17    pub payload: Vec<u8>,
18}