Module viz::prelude [−][src]
Expand description
Prelude some stuff
Modules
Macros
Construct an ad-hoc error from a string or existing non-anyhow
error
value.
Return early with an error.
Return early with an error if a condition is not satisfied.
Responds a custom error to response.
Structs
Viz App
The Context
of an HTTP request - response
.
Representation of an HTTP cookie.
A collection of cookies that tracks its modifications.
Extract typed information from the request’s cookies
Endpoint
The Error
type, a wrapper around a dynamic error type.
Form Extractor
Header Extractor
Json Extractor
A cryptographic master key for use with Signed
and/or Private
jars.
Various limits on incoming data
Extract typed information from the request’s path.
A path tree.
Payload Body
A child cookie jar that provides authenticated encryption for its cookies.
Extract typed information from the request’s query
Viz Response
Route
Router
A listening HTTP server that accepts connections in both HTTP1 and HTTP2 by default.
Application state.
Enums
Traits
A Extractor trait.
A future represents an asynchronous computation.
The handle trait within the given Args then returns Response.
A handle trait for asynchronous context pipeline.
Middleware Extends
Payload Content Type Detection
Application state factory.
Functions
Appends a route, handle any HTTP verbs
Appends a route, handle HTTP verb CONNECT
Appends a route, handle HTTP verb DELETE
Appends a route, except handle verbs
Appends a route, handle HTTP verb GET
Appends a route, only handle HTTP verbs
Appends a route, handle HTTP verb OPTIONS
Appends a route, handle HTTP verb PATCH
Appends a route, handle HTTP verb POST
Appends a route, handle HTTP verb PUT
Creates new Route
Creates new Router with empty path
Appends a route, handle HTTP verb TRACE
Appends a middleware
Type Definitions
An owned dynamically typed [Future
] for use in cases where you can’t
statically type your result or need to add some indirection.
Dyn Middleware
Multipart Extractor
Result
Tree
Middleware List