Skip to main content

Crate shiguredo_http2

Crate shiguredo_http2 

Source
Expand description

Sans I/O HTTP/2 ライブラリ

RFC 9113 (HTTP/2) および RFC 7541 (HPACK) の実装を提供する。

§特徴

  • Sans I/O: I/O を行わず、バイト列の入出力のみを扱う
  • 0 依存: 標準ライブラリのみを使用
  • RFC 準拠: RFC 9113 および RFC 7541 に準拠

§モジュール構成

Re-exports§

pub use connection::Connection;
pub use connection::ConnectionState;
pub use connection::Role;
pub use error::Error;
pub use error::ErrorCode;
pub use error::ErrorKind;
pub use error::Result;
pub use event::Event;
pub use flow_control::FlowControl;
pub use flow_control::MAX_WINDOW_SIZE;
pub use frame::CONNECTION_STREAM_ID;
pub use frame::ContinuationFrame;
pub use frame::DataFrame;
pub use frame::FRAME_HEADER_SIZE;
pub use frame::Frame;
pub use frame::FrameDecoder;
pub use frame::FrameEncoder;
pub use frame::FrameFlags;
pub use frame::FrameHeader;
pub use frame::FrameType;
pub use frame::GoawayFrame;
pub use frame::HeadersFrame;
pub use frame::PingFrame;
pub use frame::PriorityUpdateFrame;
pub use frame::RstStreamFrame;
pub use frame::SettingsFrame;
pub use frame::StreamId;
pub use frame::WindowUpdateFrame;
pub use hpack::Decoder as HpackDecoder;
pub use hpack::Encoder as HpackEncoder;
pub use hpack::HeaderField;
pub use limits::Limits;
pub use settings::Setting;
pub use settings::SettingId;
pub use settings::Settings;
pub use stream::Stream;
pub use stream::StreamState;

Modules§

connection
HTTP/2 接続管理
error
HTTP/2 エラー型定義
event
HTTP/2 イベント定義
flow_control
フロー制御 (RFC 9113 Section 5.2)
frame
HTTP/2 フレーム (RFC 9113 Section 4, 6)
hpack
HPACK ヘッダー圧縮 (RFC 7541)
limits
HTTP/2 制限設定
settings
HTTP/2 SETTINGS パラメータ (RFC 9113 Section 6.5.2)
stream
HTTP/2 ストリーム管理
validation
HTTP セマンティクス検証 (RFC 9113 Section 8)
webtransport
WebTransport over HTTP/2 (draft-ietf-webtrans-http2-14)

Constants§

CONNECTION_PREFACE
HTTP/2 接続プリフェイス (RFC 9113 Section 3.4)
CONNECTION_PREFACE_LEN
HTTP/2 接続プリフェイスの長さ