Crate viaduct

Source

Re-exports§

pub use settings::GLOBAL_SETTINGS;
pub use error::*;

Modules§

error
header_names
settings
status_codes
A module containing constants for all HTTP status codes.

Macros§

debug
error
info
trace
warn

Structs§

Header
A single header. Headers have a name (case insensitive) and a value. The character set for header and values are both restrictive.
HeaderName
Represents a header name that we know to be both valid and lowercase. Internally, this avoids allocating for headers that are constant strings, like the predefined ones in this crate, however even without that optimization, we would still likely have an equivalent of this for use as a case-insensitive string guaranteed to only have valid characters.
Headers
A list of headers.
InvalidHeaderName
Indicates an invalid header name. Note that we only emit this for response headers, for request headers, we panic instead. This is because it would likely come through as a network error if we emitted it for local headers, when it’s actually a bug that we’d need to fix.
Request
Response
A response from the server.

Enums§

Method
HTTP Methods.

Traits§

Backend

Functions§

note_backend
set_backend