Skip to main content

Module warp

Module warp 

Source
Available on crate feature warp only.
Expand description

Warp 0.4 composable filter integration.

Warp filters do not have an after-response middleware hook. The filter returns WarpRequest; handlers call WarpRequest::record around their reply to add decision headers and complete analytics.

Structs§

ReqKeyFilter
Cloneable ReqKey filter factory.
ReqKeyRejection
Custom rejection generated by ReqKey policy.
WarpRequest
Authorized request value extracted by ReqKeyFilter.

Functions§

recover
Convert a ReqKey rejection into its stable JSON response.

Type Aliases§

InfallibleReply
Helper return type for infallible Warp handlers.