Releases: tower-rs/tower-http
Releases · tower-rs/tower-http
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-encoding
if 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
ServiceExt
trait for chaining layers onto an arbitrary http service just
likeServiceBuilderExt
allows forServiceBuilder
(#563)
Fixed
- Remove unnecessary trait bounds on
S::Error
forService
impls of
RequestBodyTimeout<S>
andResponseBodyTimeout<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
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-length
to 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-encoding
header on compressed responses (#399) - compression: Support
x-gzip
as equivalent togzip
inaccept-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
v0.5.1
v0.5.0
Changed
- Bump Minimum Supported Rust Version to 1.66 (#433)
- Update to http-body 1.0 (#348)
- Update to http 1.0 (#348)
- Preserve service error type in RequestDecompression (#368)
Fixed
- Accepts range headers with ranges where the end of range goes past the end of the document by bumping
http-range-header to0.4