Crate kutil_http

Source
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§

axumaxum
Axum utilities.
cache
Cache utilities.
filefile
File utilities.
tlstls
TLS utilities.
towertower
Tower utilities.
transcoding
Transcoding utilities.

Structs§

BodyPieces
Body pieces.
BodyReader
AsyncRead wrapper for Body.
ETag
ETag value in HTTP headers.
ETagList
List of ETag.
ETagMatcher
ETag matcher.
ErrorWithBodyPieces
Error with optional BodyPieces.
ErrorWithResponsePieces
Error with optional ResponsePieces.
Language
Language tag value in HTTP headers.
MediaType
Media type value in HTTP headers.
MediaTypeSegment
MediaType segment.
MediaTypeSelector
MediaType selector.
Preference
Weighted preference.
Preferences
List of Preference.
ResponsePieces
Response pieces.
Weight
Weight (“q”) value in an HTTP header. Used to specify quality, priority, etc.

Enums§

EncodingHeaderValue
Encoding header value.
ReadBodyError
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§

CustomHeaderValues
Access custom header values.
HeaderValues
Access header values.
IntoBodyReader
Into BodyReader.
IntoHeaderValue
Into HeaderValue.
IsSpecific
Is specific
MapErrorStatusCode
Map Result error to a StatusCode.
PathAndQueryUtilities
PathAndQuery utilities.
QueryMapUtilities
QueryMap utilities.
ReadBodyIntoBytes
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§

QueryMap
URI query as map.