Added
- filter:
Filter::check
andAsyncFilter::check
methods which check a
request against the filter'sPredicate
(#521) - filter: Added
get_ref
,get_mut
, andinto_inner
methods toFilter
andAsyncFilter
, allowing access to the wrapped service (#522) - util: Added
layer
associated function toAndThen
,Then
,
MapRequest
,MapResponse
, andMapResult
types. These return aLayer
that produces middleware of that type, as a convenience to avoid having to
import theLayer
type separately. (#524) - util: Added missing
Clone
impls toAndThenLayer
,MapRequestLayer
,
andMapErrLayer
, when the mapped function implementsClone
(#525) - util: Added
FutureService::new
constructor, with less restrictive bounds
than thefuture_service
free function (#523)