Crate rocket_http

Source
Expand description

Types that map to concepts in HTTP.

This module exports types that map to HTTP concepts or to the underlying HTTP library when needed. Because the underlying HTTP library is likely to change (see #17), types in hyper should be considered unstable.

Modules§

ext
Extension traits implemented by several HTTP types.
hyper
Re-exported hyper HTTP library types.
uncased
Case-preserving, ASCII case-insensitive string types.
uri
Types for URIs and traits for rendering URI components.

Macros§

impl_from_uri_param_identity
Macro to automatically generate identity FromUriParam trait implementations.

Structs§

Accept
The HTTP Accept header.
ContentType
Representation of HTTP Content-Types.
Header
Simple representation of an HTTP header.
HeaderMap
A collection of headers, mapping a header name to its many ordered values.
MediaType
An HTTP media type.
QMediaType
A MediaType with an associated quality value.
RawStr
A reference to a string inside of a raw HTTP message.
RawStrBuf
An owned version of RawStr.
Status
Structure representing an HTTP status: an integer code.

Enums§

Method
Representation of HTTP methods.
StatusClass
Enumeration of HTTP status classes.