github tower-rs/tower tower-0.4.3
Tower 0.4.3

latest releases: tower-0.5.1, tower-0.5.0, tower-layer-0.3.3...
3 years ago

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)

Don't miss a new tower release

NewReleases is sending notifications on new releases.