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
+Send
boxedHandler
. - 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-code
in RFC 9110 et al.).
Enums§
- Body
- A body for HTTP
Request
and 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 obtained by use of
async
. - Handler
- A simplified asynchronous interface for handling input and output.
- Handler
Ext - The
HandlerExt
trait, 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
Request
Extension. - Request
Limits Ext limits
- The
Request
Extension with a limited body. - Response
Ext - The
Response
Extension. - Transform
- Then
Transform
trait 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).