Module handler

Source
Expand description

Traits and types for handling an HTTP.

Structs§

After
Maps the output Result<T> after the handler called.
AndThen
Calls op if the output is Ok, otherwise returns the Err value of the output.
Around
Wraps around the remaining handler or middleware chain.
Before
Maps the input before the handler calls.
BoxHandler
A Clone + Send boxed Handler.
CatchError
Catches rejected error while calling the handler.
CatchUnwind
Catches unwinding panics while calling the handler.
FnExtHandler
A wrapper of the extractors handler.
Map
Maps the Ok value of the output if after the handler called.
MapErr
Maps the Err value of the output if after the handler called.
MapInToResponse
Maps the handler’s output type to the Response.
OrElse
Calls op if the output is Err, otherwise returns the Ok value of the output.
ServiceHandler
Converts a hyper Service to a viz Handler.

Enums§

Either
Combines two different handlers having the same associated types into a single type.

Traits§

FnExt
A handler with extractors.
Handler
A simplified asynchronous interface for handling input and output.
HandlerExt
The HandlerExt trait, which provides adapters for chaining and composing handlers.
IntoHandler
The trait implemented by types that can be converted to a Handler.
Transform
Then Transform trait defines the interface of a handler factory that wraps inner handler to a Handler during construction.

Type Aliases§

Next
Represents a middleware parameter, which is a tuple that includes Requset and BoxHandler.