Expand description
The core traits and types in for the Viz.
Modules§
- future
- Asynchronous values.
- handler
- Traits and types for handling an HTTP.
- header
- HTTP header types
- headers
- Typed HTTP Headers
- middleware
- Built-in Middleware.
- types
- Built-in Extractors types and traits.
Structs§
- BoxHandler
- A
Clone+SendboxedHandler. - Bytes
- A cheaply cloneable and sliceable chunk of contiguous memory.
- Bytes
Mut - A unique reference to a contiguous slice of memory.
- Incoming
- A stream of
Bytes, used when receiving bodies from the network. - Io
- 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).
- Method
- The Request Method (VERB)
- Status
Code - An HTTP status code (
status-codein RFC 9110 et al.).
Enums§
- Body
- A body for HTTP
Requestand HTTPResponse. - Body
State - A body state.
- Error
- Represents errors that can occur handling application.
Traits§
- FnExt
- A handler with extractors.
- From
Request - An interface for extracting data from the HTTP
Request. - Future
- A future represents an asynchronous computation, commonly obtained by use of
async. - Handler
- A simplified asynchronous interface for handling input and output.
- Handler
Ext - The
HandlerExttrait, which provides adapters for chaining and composing handlers. - Http
Body - Trait representing a streaming body of a Request or Response.
- Into
Handler - The trait implemented by types that can be converted to a
Handler. - Into
Response - Trait implemented by types that can be converted to an HTTP
Response. - Request
Ext - The
RequestExtension. - Request
Limits Ext limits - The
RequestExtension with a limited body. - Response
Ext - The
ResponseExtension. - Transform
- Then
Transformtrait defines the interface of a handler factory that wraps inner handler to a Handler during construction.
Type Aliases§
- BoxError
- An owned dynamically typed
StdError. - Next
- Represents a middleware parameter, which is a tuple that includes Requset and
BoxHandler. - Request
- Represents an HTTP Request.
- Response
- Represents an HTTP Response.
- Result
- Represents either success (Ok) or failure (Err).