Module viz::prelude[][src]

Modules

config

Application Configuration

http
types

Web Types

Macros

anyhow

Construct an ad-hoc error from a string or existing non-anyhow error value.

bail

Return early with an error.

ensure

Return early with an error if a condition is not satisfied.

how

Converts a custom error to Response and then converts to Error.

reject

Responds a custom error to response.

Structs

Context

The Context of an HTTP request - response.

Cookie

Representation of an HTTP cookie.

CookieJar

A collection of cookies that tracks its modifications.

Cookies

Extract typed information from the request’s cookies

Error

The Error type, a wrapper around a dynamic error type.

Form

Form Extractor

HandlerSuper

A super handler wrapper within the given Context and Args.

HandlerWrapper

A basic handler wrapper within the given Args.

Json

Json Extractor

Keyprivate or signed

A cryptographic master key for use with Signed and/or Private jars.

MultipartLimits

Various limits on incoming data

Params

Extract typed information from the request’s path.

PathTree

A path tree.

Payload

Payload Body

PrivateJarprivate

A child cookie jar that provides authenticated encryption for its cookies.

Query

Extract typed information from the request’s query

Response

Viz Response

Route

Route

RouteHandler
Router

Router

State

Application state.

Enums

CookiesError

Cookies Error

Method

Method

ParamsError

Params Error

PayloadError

Payload Error

Traits

Extract

A Extractor trait.

Guard

A guard for Context

Handler

A handler within the given Context.

HandlerBase

A basic handler within the given Args.

HandlerCamp

A handler within the given Context and Args.

Middleware

A handle trait for asynchronous context pipeline.

PayloadDetect

Payload Content Type Detection

StateFactory

Application state factory.

Functions

route
router

Creates new Router with empty path

Type Definitions

DynMiddleware

Dyn Middleware

Middlewares

Middleware List

Multipart

Multipart Extractor

Result

Result

Tree

Tree