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 isOk
, otherwise returns theErr
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
boxedHandler
. - Catch
Error - Catches rejected error while calling the handler.
- Catch
Unwind - Catches unwinding panics while calling the handler.
- FnExt
Handler - 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. - MapIn
ToResponse - Maps the handler’s output type to the
Response
. - OrElse
- Calls
op
if the output isErr
, otherwise returns theOk
value of the output. - Service
Handler - Converts a hyper
Service
to a vizHandler
.
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.
- Handler
Ext - The
HandlerExt
trait, which provides adapters for chaining and composing handlers. - Into
Handler - 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
.