[][src]Crate conduit

Modules

header

HTTP header types

Structs

HeaderMap

A set of HTTP headers

Method

The Request Method (VERB)

Request

Represents an HTTP request.

Response

Represents an HTTP response

StartInstant

A type representing the instant a request was received

StatusCode

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

Version

Represents a version of the HTTP spec.

Enums

Body

A type representing a Response body.

Host
Scheme

Traits

Handler

A Handler takes a request and returns a response or an error. By default, a bare function implements Handler.

RequestExt

Functions

box_error

A helper to convert a concrete error type into a Box<dyn Error + Send>

Type Definitions

BoxError
Extensions

A Dictionary for extensions provided by the server or middleware

HandlerResult
HttpResult
ResponseResult