Helpers for HTTP types as part of an Interface
Expect the response body to be a String.
Discard the response body.
Put some JSON value in the body of your request. This will automatically add the Content-Type: application/json header.
Create a GET HttpRequest
Create a POST HttpRequest
An Interface for handling an HttpRequest
using the fetch API
Expect the response body to be
JSON, decode it using the supplied decoder.