File tree 1 file changed +5
-4
lines changed
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
224
224
go failureRef (n + 1 )
225
225
Right resp -> pure resp
226
226
227
- -- | Makes an HTTP request. The first argument specifies how the HTTP response
228
- -- | body should be interpreted.
227
+ -- | Makes an HTTP request.
229
228
-- |
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
231
230
-- | interprets the response body as JSON.
232
231
-- |
233
232
-- | ```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})
235
236
-- | ```
236
237
-- |
237
238
-- | For common cases helper functions can often be used instead of `request` .
You can’t perform that action at this time.
0 commit comments