Skip to content

Tower 0.4.3

Compare
Choose a tag to compare
@hawkw hawkw released this 13 Jan 21:27
· 136 commits to master since this release
5ad1757

Added

  • filter: Filter::check and AsyncFilter::check methods which check a
    request against the filter's Predicate (#521)
  • filter: Added get_ref, get_mut, and into_inner methods to Filter
    and AsyncFilter, allowing access to the wrapped service (#522)
  • util: Added layer associated function to AndThen, Then,
    MapRequest, MapResponse, and MapResult types. These return a Layer
    that produces middleware of that type, as a convenience to avoid having to
    import the Layer type separately. (#524)
  • util: Added missing Clone impls to AndThenLayer, MapRequestLayer,
    and MapErrLayer, when the mapped function implements Clone (#525)
  • util: Added FutureService::new constructor, with less restrictive bounds
    than the future_service free function (#523)