Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/Affjax.purs
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,15 @@ retry policy run req = do
go failureRef (n + 1)
Right resp -> pure resp

-- | Makes an HTTP request. The first argument specifies how the HTTP response
-- | body should be interpreted.
-- | Makes an HTTP request.
-- |
-- | The example below performs a `GET` request to the URL `/resource`/ and
-- | The example below performs a `GET` request to the URL `/resource` and
-- | interprets the response body as JSON.
-- |
-- | ```purescript
-- | request json (defaultRequest { url = "/resource", method = Left GET })
-- | import Affjax.ResponseFormat (json)
-- | ...
-- | request (defaultRequest { url = "/resource", method = Left GET, responseFormat = json})
-- | ```
-- |
-- | For common cases helper functions can often be used instead of `request` .
Expand Down