The output type of the responseBus
The output type of the bodyBus
The input type of the bodyBus, that will be used as the body of the request
The Bus that will be used to parse the response
The Bus that will be used to parse the request body. Optional.
A function that parses the raw response to something your Bus can handle (i.e, gets the body and parses it to JSON). Optional, defaults to jsonResponseHandler.
Generated using TypeDoc
A wrapper around the fetch API that uses Prelude-IO's type-checking mechanisms to ensure that the response and request bodies are valid. Should mostly be compatible with the Fetch API, except Options.body's type is overwritten with the output type of the bodyBus, and the return type is an IOResult.
Example