get package:wreq
Issue a GET request.
Example:
get "http://httpbin.org/get"
>>> r <- get "http://httpbin.org/get"
>>> r ^. responseStatus . statusCode
200
Issue a GET request, using the supplied
Options.
Example:
let opts = defaults & param "foo" .~ ["bar"]
getWith opts "http://httpbin.org/get"
>>> let opts = defaults & param "foo" .~ ["bar"]
>>> r <- getWith opts "http://httpbin.org/get"
>>> r ^? responseBody . key "url"
Just (String "http://httpbin.org/get?foo=bar")
A lens onto the code that fetches the data associated with part of a
multipart form upload.