File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -224,14 +224,15 @@ retry policy run req = do
224224 go failureRef (n + 1 )
225225 Right resp -> pure resp
226226
227- -- | Makes an HTTP request. The first argument specifies how the HTTP response
228- -- | body should be interpreted.
227+ -- | Makes an HTTP request.
229228-- |
230- -- | The example below performs a `GET` request to the URL `/resource`/ and
229+ -- | The example below performs a `GET` request to the URL `/resource` and
231230-- | interprets the response body as JSON.
232231-- |
233232-- | ```purescript
234- -- | request json (defaultRequest { url = "/resource", method = Left GET })
233+ -- | import Affjax.ResponseFormat (json)
234+ -- | ...
235+ -- | request (defaultRequest { url = "/resource", method = Left GET, responseFormat = json})
235236-- | ```
236237-- |
237238-- | For common cases helper functions can often be used instead of `request` .
You can’t perform that action at this time.
0 commit comments