Expand description

The prelude for common web application utilities.

This should contains the most commonly used items in std, http, log, and bytes. It also exports all the items in crate.

Re-exports

pub use bytes;
pub use crate::build_bytes;
pub use crate::chars;
pub use crate::extensions;
pub use crate::parse;
pub use crate::ref_to_mut;
pub use crate::AsCleanDebug;
pub use crate::WriteableBytes;

Modules

Functionality for ordering and comparison.

Utilities for formatting and printing Strings.

HTTP header types

Traits, helpers, and type definitions for core I/O functionality.

Networking primitives for TCP/UDP communication.

Unicode string slices.

URI component of request and response lines

Macros

Derive macro generating an impl of the trait Debug.

Derive macro generating an impl of the trait Ord.

Derive macro generating an impl of the trait PartialOrd.

Logs a message at the debug level.

Logs a message at the error level.

Logs a message at the info level.

The standard logging macro.

Logs a message at the trace level.

Logs a message at the warn level.

Structs

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.

A cheaply cloneable and sliceable chunk of contiguous memory.

A unique reference to a contiguous slice of memory.

A Duration type to represent a span of time, typically used for system timeouts.

Configuration for formatting.

A hash map implemented with quadratic probing and SIMD lookup.

A set of HTTP headers

Represents an HTTP header field name

Represents an HTTP header field value.

A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

The Request Method (VERB)

A slice of a path (akin to str).

An owned, mutable path (akin to String).

Represents an HTTP request.

Represents an HTTP response

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

The URI component of a request.

Represents a version of the HTTP spec.

Enums

A clone-on-write smart pointer.

An IP address, either IPv4 or IPv6.

An internet socket address, either IPv4 or IPv6.

Traits

A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.

? formatting.

Format trait for an empty format, {}.

Trait for types that form a total order.

Trait for types that form a partial order.

The Read trait allows for reading bytes from a source.

The Seek trait provides a cursor which can be moved within a stream of bytes.

Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.

A trait for objects which are byte-oriented sinks.