Portability | portable |
---|---|
Stability | Stable |
Maintainer | Michael Snoyman <michael@snoyman.com> |
Provide a simple HTTP client interface by wrapping the wget command line tool.
- wget :: (MonadIO m, MonadFailure WgetException m) => String -> [(String, String)] -> [(String, String)] -> m String
- wget' :: (MonadIO m, MonadFailure WgetException m) => String -> [(String, String)] -> [(String, String)] -> m ([(String, String)], String)
- newtype WgetException = WgetException String
Documentation
:: (MonadIO m, MonadFailure WgetException m) | |
=> String | The URL. |
-> [(String, String)] | Get parameters. |
-> [(String, String)] | Post parameters. If empty, this will be a get request. |
-> m String | The response body. |
Get a response from the given URL with the given parameters.
:: (MonadIO m, MonadFailure WgetException m) | |
=> String | The URL. |
-> [(String, String)] | Get parameters. |
-> [(String, String)] | Post parameters. If empty, this will be a get request. |
-> m ([(String, String)], String) | The headers and response body. |
Get a response from the given URL with the given parameters, including headers.