reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Provide conversion function for reqwest::Response to http::Response<_>

Open jplatte opened this issue 3 years ago • 5 comments

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.

jplatte avatar Apr 27 '21 19:04 jplatte

I came to this repo to post the same issue. I fully support that, it would remove a lot of boilerplate.

vasilakisfil avatar Jul 02 '21 09:07 vasilakisfil

Ping @seanmonstar, are you interested in a PR for this?

jplatte avatar Aug 19 '21 17:08 jplatte

Sure, makes sense to me!

seanmonstar avatar Aug 19 '21 17:08 seanmonstar

@seanmonstar I think this should not be marked easy, at least if you want the remaining Response conversion to work on WASM too.

jplatte avatar Aug 29 '21 11:08 jplatte