reqwest
reqwest copied to clipboard
Provide conversion function for reqwest::Response to http::Response<_>
Original title: Provide conversion functions for reqwest::{Request, Response} to http::{Request<>, Response<>}
The reverse already exist as one From
(response) and one TryFrom
(request) trait implementation, but going from reqwest types to http types doesn't seem to be supported yet.
I came to this repo to post the same issue. I fully support that, it would remove a lot of boilerplate.
Ping @seanmonstar, are you interested in a PR for this?
Sure, makes sense to me!
@seanmonstar I think this should not be marked easy, at least if you want the remaining Response
conversion to work on WASM too.