zig icon indicating copy to clipboard operation
zig copied to clipboard

std.http.Client.fetch() to return std.http.Client.Response

Open Wolfleader101 opened this issue 4 months ago • 5 comments

Reasoning

the zig std.http.Client.fetch() function is a really nice wrapper built around making a HTTP request, however it's missing the ability to inspect other content from the response, such as it's headers.

Right now if you wanted to make a simple request and also return the headers, writing your own fetch that also sends a response is the best way imo, so why not just make it apart of the std api 😄

Wolfleader101 avatar Oct 14 '24 05:10 Wolfleader101