chore(deps): update rust crate tower-http to v0.6.11 #6

Merged
rosa merged 1 commit from renovate/tower-http-0.x-lockfile into main 2026-05-28 04:08:02 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
tower-http dependencies patch 0.6.100.6.11

Release Notes

tower-rs/tower-http (tower-http)

v0.6.11

Compare Source

Added

  • set-header: add SetMultipleResponseHeadersLayer and
    SetMultipleResponseHeader for setting multiple response headers at once.
    Supports overriding, appending, and if_not_present modes. Header
    values can be fixed or computed dynamically via closures (#​672)

    use http::{Response, header::{self, HeaderValue}};
    use http_body::Body as _;
    use tower_http::set_header::response::SetMultipleResponseHeadersLayer;
    
    let layer = SetMultipleResponseHeadersLayer::overriding(vec![
        (header::X_FRAME_OPTIONS, HeaderValue::from_static("DENY")).into(),
        (header::CONTENT_LENGTH, |res: &Response<MyBody>| {
            res.body().size_hint().exact()
                .map(|size| HeaderValue::from_str(&size.to_string()).unwrap())
        }).into(),
    ]);
    
  • set-header: add SetMultipleRequestHeadersLayer and
    SetMultipleRequestHeaders for setting multiple request headers at once,
    mirroring the response-side API (#​677)

  • classify: add From<i32> and From<NonZeroI32> impls for GrpcCode.
    Unrecognized status codes map to GrpcCode::Unknown (#​506)

Changed

  • compression: compress application/grpc-web responses. Previously all
    application/grpc* content types were excluded from compression; now only
    application/grpc (non-web) is excluded (#​408)

Fixed

  • fs: fix ServeDir returning 500 instead of 405 for non-GET/HEAD requests
    when call_fallback_on_method_not_allowed is enabled but no fallback service
    is configured (#​587)
  • fs: remove duplicate cfg attribute on is_reserved_dos_name (#​675)

All PRs

New Contributors

Full Changelog: https://github.com/tower-rs/tower-http/compare/tower-http-0.6.10...tower-http-0.6.11


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tower-http](https://github.com/tower-rs/tower-http) | dependencies | patch | `0.6.10` → `0.6.11` | --- ### Release Notes <details> <summary>tower-rs/tower-http (tower-http)</summary> ### [`v0.6.11`](https://github.com/tower-rs/tower-http/releases/tag/tower-http-0.6.11) [Compare Source](https://github.com/tower-rs/tower-http/compare/tower-http-0.6.10...tower-http-0.6.11) #### Added - `set-header`: add `SetMultipleResponseHeadersLayer` and `SetMultipleResponseHeader` for setting multiple response headers at once. Supports `overriding`, `appending`, and `if_not_present` modes. Header values can be fixed or computed dynamically via closures ([#&#8203;672]) ```rust use http::{Response, header::{self, HeaderValue}}; use http_body::Body as _; use tower_http::set_header::response::SetMultipleResponseHeadersLayer; let layer = SetMultipleResponseHeadersLayer::overriding(vec![ (header::X_FRAME_OPTIONS, HeaderValue::from_static("DENY")).into(), (header::CONTENT_LENGTH, |res: &Response<MyBody>| { res.body().size_hint().exact() .map(|size| HeaderValue::from_str(&size.to_string()).unwrap()) }).into(), ]); ``` - `set-header`: add `SetMultipleRequestHeadersLayer` and `SetMultipleRequestHeaders` for setting multiple request headers at once, mirroring the response-side API ([#&#8203;677]) - `classify`: add `From<i32>` and `From<NonZeroI32>` impls for `GrpcCode`. Unrecognized status codes map to `GrpcCode::Unknown` ([#&#8203;506]) #### Changed - `compression`: compress `application/grpc-web` responses. Previously all `application/grpc*` content types were excluded from compression; now only `application/grpc` (non-web) is excluded ([#&#8203;408]) #### Fixed - `fs`: fix `ServeDir` returning 500 instead of 405 for non-GET/HEAD requests when `call_fallback_on_method_not_allowed` is enabled but no fallback service is configured ([#&#8203;587]) - `fs`: remove duplicate `cfg` attribute on `is_reserved_dos_name` ([#&#8203;675]) [#&#8203;408]: https://github.com/tower-rs/tower-http/pull/408 [#&#8203;506]: https://github.com/tower-rs/tower-http/pull/506 [#&#8203;587]: https://github.com/tower-rs/tower-http/pull/587 [#&#8203;672]: https://github.com/tower-rs/tower-http/pull/672 [#&#8203;675]: https://github.com/tower-rs/tower-http/pull/675 [#&#8203;677]: https://github.com/tower-rs/tower-http/pull/677 #### All PRs - ci: fix flaky encoding test, add nightly stress test job by [@&#8203;jlizen](https://github.com/jlizen) in [#&#8203;670](https://github.com/tower-rs/tower-http/pull/670) - ci: use static timeout in stress-test workflow by [@&#8203;jlizen](https://github.com/jlizen) in [#&#8203;671](https://github.com/tower-rs/tower-http/pull/671) - Fix serve\_dir method not allowed handling when no fallback is configured by [@&#8203;soerenmeier](https://github.com/soerenmeier) in [#&#8203;587](https://github.com/tower-rs/tower-http/pull/587) - Do compress grpc-web responses by [@&#8203;bouk](https://github.com/bouk) in [#&#8203;408](https://github.com/tower-rs/tower-http/pull/408) - add From<i32> impl for GrpcCode by [@&#8203;gshipilov](https://github.com/gshipilov) in [#&#8203;506](https://github.com/tower-rs/tower-http/pull/506) - feat(set\_header): refactor and improve multiple header middleware by [@&#8203;seun-ja](https://github.com/seun-ja) in [#&#8203;672](https://github.com/tower-rs/tower-http/pull/672) - Remove duplicate cfg attribute for is\_reserved\_dos\_name by [@&#8203;GlenDC](https://github.com/GlenDC) in [#&#8203;675](https://github.com/tower-rs/tower-http/pull/675) - feat: set multiple request header by [@&#8203;seun-ja](https://github.com/seun-ja) in [#&#8203;677](https://github.com/tower-rs/tower-http/pull/677) - chore: release 0.6.11 by [@&#8203;jlizen](https://github.com/jlizen) in [#&#8203;673](https://github.com/tower-rs/tower-http/pull/673) #### New Contributors - [@&#8203;gshipilov](https://github.com/gshipilov) made their first contribution in [#&#8203;506](https://github.com/tower-rs/tower-http/pull/506) - [@&#8203;seun-ja](https://github.com/seun-ja) made their first contribution in [#&#8203;672](https://github.com/tower-rs/tower-http/pull/672) **Full Changelog**: <https://github.com/tower-rs/tower-http/compare/tower-http-0.6.10...tower-http-0.6.11> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTcuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5Ny4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->
chore(deps): update rust crate tower-http to v0.6.11
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/pr/test Pipeline failed
4f40b903fc
rosa scheduled this pull request to auto merge when all checks succeed 2026-05-28 00:07:40 +00:00
rosa merged commit 16684aca4f into main 2026-05-28 04:08:02 +00:00
rosa deleted branch renovate/tower-http-0.x-lockfile 2026-05-28 04:08:02 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rosa/vernier!6
No description provided.