Skip to main content

Module http

Module http 

Source

Re-exports§

pub use field::Field;
pub use field::FieldBlock;
pub use field::OwnedField;
pub use huffman::HpackHuffman;
pub use huffman::HpackHuffmanError;
pub use varint::VarInt;

Modules§

body_kind
codec
compress
Built-in gzip response compression (libdeflater). Gzip::with_thread_local borrows a per-thread encoder (level 3) so a handler can compress a body when Accept-Encoding includes gzip without per-request allocation; encode returns the gzip bytes. This is sark’s standard compression path — response bodies are never hand-rolled.
field
head
huffman
varint

Structs§

Chunked
FixedResponseInner
HeadInner
HeaderItemInner
HeaderList
HeaderNameToken
HeaderStaticValueToken
HeadersInner
HotTextInner
InlineHeaderValue
IterStream
LocalFrameBytesRef
Method
The Request Method (VERB)
MonoResponseInner
NeverStream
PathParamRanges
Request
Response
ResponsePlanInner
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Stream

Enums§

BodyInner
HeaderValueInner
HotBodyInner
HotHeadInner
ServeInner
TextItemInner

Constants§

CHUNK_TERMINATOR

Traits§

HeaderNameRef
IntoBody
IntoHeaderName
IntoHeaderValue
IntoServeResponse
IntoServeResponseStatic
Shape
TextSpec

Type Aliases§

Body
FixedResponse
HeaderItem
Headers
LocalFrameBytes
ResponsePlan
Serve
TextBody
TextItem