Expand description
Traits and types for handling an HTTP.
Structs
Maps the output Result<T>
after the handler called.
Calls op
if the output is Ok
, otherwise returns the Err
value of the output.
Wraps around the remaining handler or middleware chain.
Maps the input before the handler calls.
Catches rejected error while calling the handler.
Catches unwinding panics while calling the handler.
A wrapper of the extractors handler.
Maps the Ok
value of the output if after the handler called.
Maps the Err
value of the output if after the handler called.
Maps the handler’s output type to the Response
.
Calls op
if the output is Err
, otherwise returns the Ok
value of the output.
Enums
Combines two different handlers having the same associated types into a single type.
Traits
A handler with extractors.
A simplified asynchronous interface for handling input and output.
The HandlerExt
trait, which provides adapters for chaining and composing handlers.
Trait implemented by types that can be converted to a Handler
.
Then Transform
trait defines the interface of a handler factory that wraps inner handler to
a Handler during construction.
Type Definitions
Alias the boxed Handler.
Represents a middleware parameter, which is a tuple that includes Requset and BoxHandler.