Skip to main content

Module codec

Module codec 

Available on crate feature icap only.
Expand description

Borrowed ICAP wire decoders and fixed-buffer encoders.

Structs§

ChunkExtension
A borrowed chunk extension.
ChunkExtensionIter
Iterator returned by ChunkExtensions::iter.
ChunkExtensions
An iterator over a validated chunk extension sequence.
ChunkLine
A decoded ICAP chunk-size line.
ChunkLineScanner
Incremental, allocation-free chunk-line terminator scanner.
Encapsulated
A structurally valid, borrowed Encapsulated header value.
EncapsulatedIter
Iterator returned by Encapsulated::iter.
Framed
A completed incremental frame boundary.
HeadParserConfig
Bounds and compatibility policy for ICAP head decoding.
HeadScanner
Incremental, allocation-free ICAP head terminator scanner.
Header
A borrowed ICAP header field.
HeaderSlot
One caller-owned slot used while parsing an ICAP head.
HeaderValue
A borrowed header field value.
HeaderValueSegments
Iterator over the normalized segments of a header value.
InvalidChunkLine
A malformed or overflowing ICAP chunk-size line.
InvalidComposition
Encapsulated sections do not fit an ICAP method, direction, or status.
InvalidHeader
An invalid ICAP header field.
ParsedHeaders
Iterator over parsed header fields.
RequestHead
A decoded ICAP request head.
RequestLine
A borrowed ICAP request line.
ResponseHead
A decoded ICAP response head.
ResponseLine
A borrowed ICAP response status line.
TrailerScanner
Incremental scanner for one trailer field block.
Trailers
One decoded trailer field block.

Enums§

ChunkLineError
An ICAP chunk-size line could not be decoded.
CompositionValidation
Semantic validation performed after an ICAP head is decoded.
EncapsulatedContext
Method and direction used for Encapsulated composition validation.
EncodeError
An ICAP value could not be encoded.
HeaderFolding
Policy for the obsolete line folding admitted by RFC 3507.
InterimServiceTag
Compatibility policy for service tags on interim 100 responses.
ParseError
A malformed ICAP message head.
ParseStatus
The result of parsing a possibly incomplete input buffer.
ScanStatus
The result of incrementally scanning newly received stream bytes.
ServiceTagSyntax
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 Encapsulated header 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 Encapsulated header 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.