Expand description
The core traits and types in for the Viz
.
Modules§
- Asynchronous values.
- Traits and types for handling an HTTP.
- HTTP header types
- Typed HTTP Headers
- Built-in Middleware.
- Built-in Extractors types and traits.
Structs§
- A cheaply cloneable and sliceable chunk of contiguous memory.
- A unique reference to a contiguous slice of memory.
- A stream of
Bytes
, used when receiving bodies from the network. - A wrapper that implements Tokio’s IO traits for an inner type that implements hyper’s IO traits, or vice versa (implements hyper’s IO traits for a type that implements Tokio’s IO traits).
- The Request Method (VERB)
- An HTTP status code (
status-code
in RFC 7230 et al.).
Enums§
- A body state.
- Represents errors that can occur handling application.
Traits§
- A handler with extractors.
- An interface for extracting data from the HTTP
Request
. - A future represents an asynchronous computation obtained by use of
async
. - A simplified asynchronous interface for handling input and output.
- The
HandlerExt
trait, which provides adapters for chaining and composing handlers. - Trait representing a streaming body of a Request or Response.
- The trait implemented by types that can be converted to a
Handler
. - Trait implemented by types that can be converted to an HTTP
Response
. - The
Request
Extension. - Request
Limits Ext limits
TheRequest
Extension with a limited body. - The
Response
Extension. - Then
Transform
trait defines the interface of a handler factory that wraps inner handler to a Handler during construction.
Type Aliases§
- An owned dynamically typed
StdError
. - Represents a middleware parameter, which is a tuple that includes Requset and
BoxHandler
. - Represents an HTTP Request.
- Represents an HTTP Response.
- Represents either success (Ok) or failure (Err).