[][src]Module salvo::http

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.

Re-exports

pub use body_chunk::BodyChunk;
pub use cookie;

Modules

body_chunk

Client- and server-side abstractions for HTTP multipart/form-data requests using asynchronous I/O.

errors
form
header
multipart

Structs

Body

A stream of Bytes, used when receiving bodies.

HeaderMap

A set of HTTP headers

HeaderValue

Represents an HTTP header field value.

Method

The Request Method (VERB)

Mime

A parsed mime or media type.

Request

The Request given to all Middleware.

Response

The response representation given to Middleware

StatusCode

An HTTP status code (status-code in RFC 7230 et al.).

Traits

BodyWriter

A trait which writes the body of an HTTP response.