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_localborrows a per-thread encoder (level 3) so a handler can compress a body whenAccept-Encodingincludesgzipwithout per-request allocation;encodereturns the gzip bytes. This is sark’s standard compression path — response bodies are never hand-rolled. - field
- head
- huffman
- varint
Structs§
- Chunked
- Fixed
Response Inner - Head
Inner - Header
Item Inner - Header
List - Header
Name Token - Header
Static Value Token - Headers
Inner - HotText
Inner - Inline
Header Value - Iter
Stream - Local
Frame Bytes Ref - Method
- The Request Method (VERB)
- Mono
Response Inner - Never
Stream - Path
Param Ranges - Request
- Response
- Response
Plan Inner - Status
Code - An HTTP status code (
status-codein RFC 9110 et al.). - Stream
Enums§
Constants§
Traits§
- Header
Name Ref - Into
Body - Into
Header Name - Into
Header Value - Into
Serve Response - Into
Serve Response Static - Shape
- Text
Spec
Functions§
- apply_
head_ skip - Rewrites the cached head template’s
Server/Dateterminator in place to honor a route’s#[skip(...)]policy. The template is built once and cached, so this runs once per route — not per request.