Skip to content

chore(deps): bump tower-http from 0.6.8 to 0.6.9#566

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/tower-http-0.6.9
Open

chore(deps): bump tower-http from 0.6.8 to 0.6.9#566
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/cargo/tower-http-0.6.9

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github May 5, 2026

Bumps tower-http from 0.6.8 to 0.6.9.

Release notes

Sourced from tower-http's releases.

tower-http-0.6.9

Added:

  • on-early-drop: middleware that detects when a response future or response body is dropped before completion (#636)

    Two events get hooks: the response future being dropped before the inner service produces a response, and the response body being dropped before reaching end-of-stream.

    Install custom callbacks with OnEarlyDropLayer::builder():

    use http::Request;
    use tower_http::on_early_drop::{OnBodyDropFn, OnEarlyDropLayer};
    let layer = OnEarlyDropLayer::builder()
    .on_future_drop(|req: &Request<()>| {
    let uri = req.uri().clone();
    move || eprintln!("future dropped for {}", uri)
    })
    .on_body_drop(OnBodyDropFn::new(|req: &Request<()>| {
    let uri = req.uri().clone();
    move |parts: &http::response::Parts| {
    let status = parts.status;
    move || eprintln!("body dropped for {} status {}", uri, status)
    }
    }));

    Or route both events through a trace::OnFailure hook with EarlyDropsAsFailures. Place this layer inside a TraceLayer so the emitted events inherit the request span:

    use tower::ServiceBuilder;
    use tower_http::on_early_drop::{OnEarlyDropLayer, EarlyDropsAsFailures};
    use tower_http::trace::{DefaultOnFailure, TraceLayer};
    let stack = ServiceBuilder::new()
    .layer(TraceLayer::new_for_http())
    .layer(OnEarlyDropLayer::new(
    EarlyDropsAsFailures::new(DefaultOnFailure::default()),
    ));

  • fs: make AsyncReadBody::with_capacity public (#415)

Changed:

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels May 5, 2026
@dependabot dependabot Bot requested a review from zeroXbrock as a code owner May 5, 2026 23:27
@dependabot dependabot Bot added the rust Pull requests that update rust code label May 5, 2026
Bumps [tower-http](https://github.com/tower-rs/tower-http) from 0.6.8 to 0.6.9.
- [Release notes](https://github.com/tower-rs/tower-http/releases)
- [Commits](tower-rs/tower-http@tower-http-0.6.8...tower-http-0.6.9)

---
updated-dependencies:
- dependency-name: tower-http
  dependency-version: 0.6.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/tower-http-0.6.9 branch from 69fb20a to 162629e Compare May 5, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants