Expand description
Various Rust utilities for HTTP.
Part of the Kutil family of Rust utility libraries.
The word “kutil” means “do-it-yourselfer” in Czech.
For more information and usage examples see the home page.
Modules§
- axum
axum
- Axum utilities.
- cache
- Cache utilities.
- file
file
- File utilities.
- tls
tls
- TLS utilities.
- tower
tower
- Tower utilities.
- transcoding
- Transcoding utilities.
Structs§
- Body
Pieces - Body pieces.
- Body
Reader - AsyncRead wrapper for Body.
- ETag
- ETag value in HTTP headers.
- ETag
List - List of ETag.
- ETag
Matcher - ETag matcher.
- Error
With Body Pieces - Error with optional BodyPieces.
- Error
With Response Pieces - Error with optional ResponsePieces.
- Language
- Language tag value in HTTP headers.
- Media
Type - Media type value in HTTP headers.
- Media
Type Segment - MediaType segment.
- Media
Type Selector - MediaType selector.
- Preference
- Weighted preference.
- Preferences
- List of Preference.
- Response
Pieces - Response pieces.
- Weight
- Weight (“q”) value in an HTTP header. Used to specify quality, priority, etc.
Enums§
- Encoding
Header Value - Encoding header value.
- Read
Body Error - ReadBodyIntoBytes error.
- Selector
- Selector.
Constants§
- CONTENT_
DIGEST Content-Digest
HTTP response header.- FALSE_
HEADER_ VALUE - HTTP header value of “false”.
- TRUE_
HEADER_ VALUE - HTTP header value of “true”.
- XX_
CACHE XX-Cache
HTTP response header specifying whether to cache the response.- XX_
CACHE_ DURATION XX-Cache-Duration
HTTP response header specifying the cache duration in seconds.- XX_
ENCODE XX-Encode
HTTP response header specifying whether to encode the response.
Traits§
- Custom
Header Values - Access custom header values.
- Header
Values - Access header values.
- Into
Body Reader - Into BodyReader.
- Into
Header Value - Into HeaderValue.
- IsSpecific
- Is specific
- MapError
Status Code - Map Result error to a StatusCode.
- Path
AndQuery Utilities - PathAndQuery utilities.
- Query
MapUtilities - QueryMap utilities.
- Read
Body Into Bytes - Read Body into Bytes.
- SetUri
- Set Uri.
- UriUtilities
- Uri utilities.
Functions§
- file_
modified - File modification timestamp as HttpDate.
- modified
- Conditional HTTP.
- modified_
since - Whether we have been modified since a reference date.
- now
- Current time as HttpDate.
- response_
from_ bytes - Creates a response with a Bytes body.
Type Aliases§
- Query
Map - URI query as map.