Docs.rs
  • loona-h2-0.4.2
    • loona-h2 0.4.2
    • Permalink
    • Docs.rs crate page
    • MIT OR Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • fasterthanlime
    • Dependencies
      • buffet ^0.3.3 normal
      • byteorder ^1.5.0 normal
      • enumflags2 ^0.7.10 normal
      • nom ^7.1.3 normal
      • thiserror ^1.0.63 normal
      • tracing ^0.1.40 normal
    • Versions
    • 36.64% of the crate is documented
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

loona_h20.4.2

  • All Items

Crate Items

  • Re-exports
  • Structs
  • Enums
  • Constants
  • Traits
  • Functions

Crate loona_h2

Source
Expand description

HTTP/2 parser

HTTP/2 https://httpwg.org/specs/rfc9113.html HTTP semantics https://httpwg.org/specs/rfc9110.html

Re-exports§

pub use enumflags2;
pub use nom;

Structs§

EncodedFrameType
ErrorCode
Frame
See https://httpwg.org/specs/rfc9113.html#FrameHeader
GoAway
Payload for a GOAWAY frame
PrioritySpec
RstStream
Payload for a RST_STREAM frame
SettingPairs
Settings
cf. https://httpwg.org/specs/rfc9113.html#SettingValues
StreamId
StreamIdOutOfRange
WindowUpdate
Payload for a WINDOW_UPDATE frame

Enums§

ContinuationFlags
See https://httpwg.org/specs/rfc9113.html#CONTINUATION
DataFlags
See https://httpwg.org/specs/rfc9113.html#DATA
FrameType
Typed flags for various frame types
HeadersFlags
See https://httpwg.org/specs/rfc9113.html#rfc.section.6.2
KnownErrorCode
PingFlags
See https://httpwg.org/specs/rfc9113.html#PING
RawFrameType
See https://httpwg.org/specs/rfc9113.html#FrameTypes
Setting
SettingsError
SettingsFlags
See https://httpwg.org/specs/rfc9113.html#SETTINGS

Constants§

PREFACE
This is sent by h2 clients after negotiating over ALPN, or when doing h2c.

Traits§

IntoPiece

Functions§

pack_bit_and_u31
Pack a bit and a u31 into a 4-byte array (big-endian)
pack_reserved_and_stream_id
parse_bit_and_u31
See https://httpwg.org/specs/rfc9113.html#FrameHeader - the first bit is reserved, and the rest is a 31-bit stream id
preface