Expand description
Traits and types for handling an HTTP.
Structs§
- Maps the output
Result<T>after the handler called. - Calls
opif the output isOk, otherwise returns theErrvalue 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
Okvalue of the output if after the handler called. - Maps the
Errvalue of the output if after the handler called. - Maps the handler’s output type to the
Response. - Calls
opif the output isErr, otherwise returns theOkvalue 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
HandlerExttrait, which provides adapters for chaining and composing handlers. - The trait implemented by types that can be converted to a
Handler. - Then
Transformtrait defines the interface of a handler factory that wraps inner handler to a Handler during construction.
Type Aliases§
- Represents a middleware parameter, which is a tuple that includes Requset and
BoxHandler.