You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reqwest::Client already has tower::Service implementation for the reqwest::Request and reqwest::Response types. But it lacks of the service implementation for http::Request and http::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.
The text was updated successfully, but these errors were encountered:
alekseysidorov
changed the title
[Feature Request] impl<S, ReqBody> tower::Service<http::Request<ReqBody>> for reqwest::Client
[Feature Request] add tower::Service implementation for http::Request and http:: Response types.
Apr 19, 2024
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.
The text was updated successfully, but these errors were encountered: