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/brotli response compression.
with_thread_localborrows a per-thread encoder so a handler can compress a body without per-request allocation;encodereturns the compressed 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 a cached head’s
Server/Dateterminator for a route’s#[skip(...)]policy, returning the per-requestDatepatch offset (Nonewhen the line is dropped). Runs once per route at build time, never per request. Assumes the terminator is the final contiguous block: