Module codec
Available on crate feature
icap only.Expand description
Borrowed ICAP wire decoders and fixed-buffer encoders.
Structs§
- Chunk
Extension - A borrowed chunk extension.
- Chunk
Extension Iter - Iterator returned by
ChunkExtensions::iter. - Chunk
Extensions - An iterator over a validated chunk extension sequence.
- Chunk
Line - A decoded ICAP chunk-size line.
- Chunk
Line Scanner - Incremental, allocation-free chunk-line terminator scanner.
- Encapsulated
- A structurally valid, borrowed
Encapsulatedheader value. - Encapsulated
Iter - Iterator returned by
Encapsulated::iter. - Framed
- A completed incremental frame boundary.
- Head
Parser Config - Bounds and compatibility policy for ICAP head decoding.
- Head
Scanner - Incremental, allocation-free ICAP head terminator scanner.
- Header
- A borrowed ICAP header field.
- Header
Slot - One caller-owned slot used while parsing an ICAP head.
- Header
Value - A borrowed header field value.
- Header
Value Segments - Iterator over the normalized segments of a header value.
- Invalid
Chunk Line - A malformed or overflowing ICAP chunk-size line.
- Invalid
Composition - Encapsulated sections do not fit an ICAP method, direction, or status.
- Invalid
Header - An invalid ICAP header field.
- Parsed
Headers - Iterator over parsed header fields.
- Request
Head - A decoded ICAP request head.
- Request
Line - A borrowed ICAP request line.
- Response
Head - A decoded ICAP response head.
- Response
Line - A borrowed ICAP response status line.
- Trailer
Scanner - Incremental scanner for one trailer field block.
- Trailers
- One decoded trailer field block.
Enums§
- Chunk
Line Error - An ICAP chunk-size line could not be decoded.
- Composition
Validation - Semantic validation performed after an ICAP head is decoded.
- Encapsulated
Context - Method and direction used for
Encapsulatedcomposition validation. - Encode
Error - An ICAP value could not be encoded.
- Header
Folding - Policy for the obsolete line folding admitted by RFC 3507.
- Interim
Service Tag - Compatibility policy for service tags on interim 100 responses.
- Parse
Error - A malformed ICAP message head.
- Parse
Status - The result of parsing a possibly incomplete input buffer.
- Scan
Status - The result of incrementally scanning newly received stream bytes.
- Service
TagSyntax - Accepted syntax for the ICAP service tag header.
Constants§
- DEFAULT_
MAX_ CHUNK_ LINE_ BYTES - Default maximum encoded size of an ICAP chunk-size line.
- DEFAULT_
MAX_ HEADERS - Default maximum number of ICAP header fields decoded into a head.
- DEFAULT_
MAX_ HEAD_ BYTES - Default maximum encoded size of an ICAP start line and header block.
Functions§
- encode_
chunk_ line - Encode an ICAP chunk-size line into
dst. - encode_
encapsulated - Encode a structurally valid sequence for an
Encapsulatedheader value. - encode_
parsed_ request_ head - Encode a previously parsed ICAP request head into
dst. - encode_
parsed_ response_ head - Encode a previously parsed ICAP response head into
dst. - encode_
request_ head - Encode an ICAP request line and header block into
dst. - encode_
response_ head - Encode an ICAP response line and header block into
dst. - parse_
chunk_ line - Parse an ICAP chunk-size line, including Preview extensions.
- parse_
chunk_ line_ with_ limit - Parse an ICAP chunk-size line with an explicit encoded size bound.
- parse_
encapsulated - Parse and structurally validate an
Encapsulatedheader value. - parse_
request_ head - Parse an ICAP request head into caller-owned header storage.
- parse_
request_ head_ with_ config - Parse an ICAP request head with explicit bounds and compatibility policy.
- parse_
response_ head - Parse an ICAP response head into caller-owned header storage.
- parse_
response_ head_ with_ config - Parse an ICAP response head with explicit bounds and compatibility policy.
- parse_
trailers - Parse one trailer field block into caller-owned storage.
- parse_
trailers_ with_ config - Parse one trailer field block with explicit bounds and folding.