suborbital / javy

JS to WebAssembly toolchain
Apache License 2.0
9 stars 2 forks source link

Expose metadata of HTTP responses #20

Open flaki opened 2 years ago

flaki commented 2 years ago

There is currently no way to follow HTTP redirects when fetching an URL with the http.* functions. HTTPResponse (and friends), the result type of these calls only exposes formatted bodies, but no response status (e.g. 3xx codes for redirects) or headers (Location), thus there is no way to know how to fetch the actual result if the current URL is being redirected.