We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
on_eos
1 parent 635692d commit 10fcc7cCopy full SHA for 10fcc7c
tower-http/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8
+# Unreleased
9
+
10
+## Fixed
11
12
+- `on_eos` is now called even for successful responses.
13
14
# 0.6.6
15
16
## Fixed
tower-http/src/trace/future.rs
@@ -80,7 +80,7 @@ where
80
let res = res.map(|body| ResponseBody {
81
inner: body,
82
classify_eos: None,
83
- on_eos: None,
+ on_eos: on_eos.zip(Some(Instant::now())),
84
on_body_chunk,
85
on_failure: Some(on_failure),
86
start,
0 commit comments