Skip to content

Releases: tower-rs/tower-http

tower-http-0.6.8

08 Dec 15:38

Choose a tag to compare

Fixed

  • Disable multiple_members in Gzip decoder, since HTTP context only uses one
    member. (#621)

What's Changed

New Contributors

Full Changelog: tower-http-0.6.7...tower-http-0.6.8

tower-http-0.6.7

24 Nov 18:27

Choose a tag to compare

Added

  • TimeoutLayer::with_status_code(status) to define the status code returned
    when timeout is reached. (#599)

Deprecated

  • auth::require_authorization is too basic for real-world. (#591)
  • TimeoutLayer::new() should be replaced with
    TimeoutLayer::with_status_code(). (Previously was
    StatusCode::REQUEST_TIMEOUT) (#599)

Fixed

  • on_eos is now called even for successful responses. (#580)
  • ServeDir: call fallback when filename is invalid (#586)
  • decompression will not fail when body is empty (#618)

New Contributors

Full Changelog: tower-http-0.6.6...tower-http-0.6.7

tower-http-0.6.6

03 Jun 13:04

Choose a tag to compare

Fixed

  • compression: fix panic when looking in vary header (#578)

New Contributors

Full Changelog: tower-http-0.6.5...tower-http-0.6.6

tower-http-0.6.5

03 Jun 13:03

Choose a tag to compare

Added

  • normalize_path: add append_trailing_slash() mode (#547)

Fixed

  • redirect: remove payload headers if redirect changes method to GET (#575)
  • compression: avoid setting vary: accept-encoding if already set (#572)

New Contributors

Full Changelog: tower-http-0.6.4...tower-http-0.6.5

tower-http 0.6.4

10 May 20:40
tower-http-0.6.4
fa8848e

Choose a tag to compare

Added

  • decompression: Support HTTP responses containing multiple ZSTD frames (#548)
  • The ServiceExt trait for chaining layers onto an arbitrary http service just
    like ServiceBuilderExt allows for ServiceBuilder (#563)

Fixed

  • Remove unnecessary trait bounds on S::Error for Service impls of
    RequestBodyTimeout<S> and ResponseBodyTimeout<S> (#533)
  • compression: Respect is_end_stream (#535)
  • Fix a rare panic in fs::ServeDir (#553)
  • Fix invalid content-lenght of 1 in response to range requests to empty
    files (#556)
  • In AsyncRequireAuthorization, use the original inner service after it is
    ready, instead of using a clone (#561)

tower-http 0.6.3

07 May 19:32
tower-http-0.6.3
7b4b07d

Choose a tag to compare

This release was yanked because its definition of ServiceExt was quite unhelpful, in a way that's very unlikely that anybody would start depending on within the small timeframe before this was yanked, but that was technically breaking to change.

tower-http-0.6.2

18 Nov 19:32
3789c0c

Choose a tag to compare

Changed:

  • CompressionBody<B> now propagates B's size hint in its http_body::Body
    implementation, if compression is disabled (#531)
    • this allows a content-length to be included in an HTTP message with this
      body for those cases

New Contributors

Full Changelog: tower-http-0.6.1...tower-http-0.6.2

v0.6.1

23 Sep 14:32

Choose a tag to compare

Fixed

  • decompression: reuse scratch buffer to significantly reduce allocations and improve performance (#521)

New Contributors

v0.6.0

19 Sep 21:25
aeca262

Choose a tag to compare

Changed:

  • body module is disabled except for catch-panic, decompression-*, fs, or limit features (BREAKING) (#477)
  • Update to tower 0.5 (#503)

Fixed

  • fs: Precompression of static files now supports files without a file extension (#507)

v0.5.2

23 Feb 08:16
18219fc

Choose a tag to compare

Added:

  • compression: Will now send a vary: accept-encoding header on compressed responses (#399)
  • compression: Support x-gzip as equivalent to gzip in accept-encoding request header (#467)

Fixed

  • compression: Skip compression for range requests (#446)
  • compression: Skip compression for SSE responses by default (#465)
  • cors: Actually keep Vary headers set by the inner service when setting response headers (#473)
    • Version 0.5.1 intended to ship this, but the implementation was buggy and didn't actually do anything