Closed alekseysidorov closed 2 weeks ago
Updates?
I am supporting this in order to not further fragment the middleware ecosystem.
I think that we can get a little closer to this goal if we merge this MR. It's just simplify interop with other Body
implementations.
reqwest::Client
already hastower::Service
implementation for thereqwest::Request
andreqwest::Response
types. But it lacks of the service implementation forhttp::Request
andhttp::Response
types. If we add this implementation we can use a lot of existing layers from the tower_http crate without any code modification.I already implemented this feature in my own crate. But I believe it would be better to add this functionality to the core library than to use adapters.
Here is my implementation.