reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Add TryFrom<HttpRequest<()>> for Request

Open Gerhut opened this issue 1 year ago • 1 comments

http::Request<()> is a common pattern of requests without body in the http library, but it cannot be converted into reqwest::Request. This PR adds such case.

Gerhut avatar Mar 21 '24 16:03 Gerhut

in #2307, I did another implementation, which is much simpler, but stores body differently (None vs Some(Bytes::empty())), please check it out and give comment if any

I did my own investigation into this issue before I found this PR, so I'd be happy if either one is merged

rlidwka avatar Jun 04 '24 17:06 rlidwka