Skip to content

Conversation

@ducaale
Copy link
Contributor

@ducaale ducaale commented Oct 19, 2025

Resolves #2575

Depends on tower-rs/tower-http#618

@ducaale ducaale force-pushed the decompression-from-tower-http branch 2 times, most recently from da8b819 to fdb2283 Compare October 19, 2025 21:28
@ducaale ducaale changed the title Use decompression from http-tower Use decompression from tower-http Oct 19, 2025
@ducaale ducaale force-pushed the decompression-from-tower-http branch 2 times, most recently from 6eaf312 to 2f95afa Compare October 27, 2025 22:44
@ducaale
Copy link
Contributor Author

ducaale commented Oct 29, 2025

Update: I will need to port reqwest's empty-body detection logic to tower_http::decompression::Decompression

@ducaale ducaale force-pushed the decompression-from-tower-http branch 2 times, most recently from 27bfead to 55d134b Compare November 15, 2025 20:36
@ducaale ducaale marked this pull request as ready for review November 15, 2025 21:37
@ducaale ducaale marked this pull request as draft November 15, 2025 21:42
@ducaale ducaale force-pushed the decompression-from-tower-http branch 2 times, most recently from a131cc6 to 20c0fd2 Compare November 15, 2025 23:34
@ducaale ducaale marked this pull request as ready for review November 15, 2025 23:44
for<'c> F: Fn(&'c [u8], &'c mut TcpStream) -> Box<dyn Future<Output = ()> + Send + 'c>,
{
loop {
for _ in 0..requests_count {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this change. Previously, this loop never exited until the test server was dropped.

@ducaale ducaale force-pushed the decompression-from-tower-http branch from 20c0fd2 to b57075b Compare November 24, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor decompression to use tower-http

1 participant