Releases: tower-rs/tower-http
Releases · tower-rs/tower-http
tower-http-0.6.8
Fixed
- Disable
multiple_membersin Gzip decoder, since HTTP context only uses one
member. (#621)
What's Changed
- Disable
multiple_membersoption for gzip decoder by @ducaale in #621 - ci: Pin tracing in MSRV job by @ducaale in #622
- ci: Switch cargo-public-api-crates to cargo-check-external-types by @tottoto in #613
- Remove deprecated annotations and Refactor From implementations by @sinder38 in #608
- v0.6.8 by @seanmonstar in #624
New Contributors
Full Changelog: tower-http-0.6.7...tower-http-0.6.8
tower-http-0.6.7
Added
TimeoutLayer::with_status_code(status)to define the status code returned
when timeout is reached. (#599)
Deprecated
auth::require_authorizationis too basic for real-world. (#591)TimeoutLayer::new()should be replaced with
TimeoutLayer::with_status_code(). (Previously was
StatusCode::REQUEST_TIMEOUT) (#599)
Fixed
on_eosis now called even for successful responses. (#580)ServeDir: call fallback when filename is invalid (#586)decompressionwill not fail when body is empty (#618)
New Contributors
- @mladedav made their first contribution in #580
- @aryaveersr made their first contribution in #586
- @soerenmeier made their first contribution in #588
- @gjabell made their first contribution in #591
- @FalkWoldmann made their first contribution in #599
- @ducaale made their first contribution in #618
Full Changelog: tower-http-0.6.6...tower-http-0.6.7
tower-http-0.6.6
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
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-encodingif already set (#572)
New Contributors
- @daalfox made their first contribution in #547
- @mherrerarendon made their first contribution in #574
- @linyihai made their first contribution in #575
Full Changelog: tower-http-0.6.4...tower-http-0.6.5
tower-http 0.6.4
Added
- decompression: Support HTTP responses containing multiple ZSTD frames (#548)
- The
ServiceExttrait for chaining layers onto an arbitrary http service just
likeServiceBuilderExtallows forServiceBuilder(#563)
Fixed
- Remove unnecessary trait bounds on
S::ErrorforServiceimpls of
RequestBodyTimeout<S>andResponseBodyTimeout<S>(#533) - compression: Respect
is_end_stream(#535) - Fix a rare panic in
fs::ServeDir(#553) - Fix invalid
content-lenghtof 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
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
Changed:
CompressionBody<B>now propagatesB's size hint in itshttp_body::Body
implementation, if compression is disabled (#531)- this allows a
content-lengthto be included in an HTTP message with this
body for those cases
- this allows a
New Contributors
- @musicinmybrain made their first contribution in #524
- @SabrinaJewson made their first contribution in #531
Full Changelog: tower-http-0.6.1...tower-http-0.6.2
v0.6.1
Fixed
- decompression: reuse scratch buffer to significantly reduce allocations and improve performance (#521)
New Contributors
- @magurotuna made their first contribution in #521
v0.6.0
v0.5.2
Added:
- compression: Will now send a
vary: accept-encodingheader on compressed responses (#399) - compression: Support
x-gzipas equivalent togzipinaccept-encodingrequest 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