deislabs / wasi-experimental-http

Experimental outbound HTTP support for WebAssembly and WASI
MIT License
136 stars 33 forks source link

feat: implement From http::Response for Response #88

Closed radu-matei closed 2 years ago

radu-matei commented 2 years ago

This commit implements From<http::Response> for Response, making it much easier to consume responses.

Instead of breaking the current API, it adds a new function, send_request, which directly returns a formed http::Response.

Signed-off-by: Radu Matei radu.matei@fermyon.com