purescript-milkis
purescript-milkis copied to clipboard
A Purescript library for working with fetch for HTTP requests
I have code here however I'm missing `node-fetch` after migrating to spago. Could you help out adding it?
Looks like there is a newer version of node-fetch (v3.0.0) which breaks when running Milkis (it looks like it's an ES module, which can't be require()'d the same way in...
I'm making a `POST` request to a server's endpoint without a trailing slash. I get a 301 Moved Permanently and get redirected to the endpoint with the trailing slash. Then...
It might be necessarily to use an opaque type for body content in requests, for supporting things like formData.
In order to fetch arbitrary pages which don't have the Access-Control-Allow-Origin header set, I need to be able to pass mode: "cors" in with the fetch options, as documented here:...
https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText