zig
zig copied to clipboard
std.http.Client.fetch() to return std.http.Client.Response
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 😄