Convenience functions for working with HTTP requests as Tasks.
Create a POST request.
Expect the response body to be a String.
Expect the response body to be JSON. Returns a BadBody error when JSON decoding fails.
Expect the response body to be anything, and the ignore it.
Use your own body parsing function to build a resolver.
Create a
GETrequest.You can use functions like
resolveStringandresolveJsonto interpret the response in different ways.