| Portability | portable |
|---|---|
| Stability | Stable |
| Maintainer | Michael Snoyman <michael@snoyman.com> |
Network.HTTP.Wget
Description
Provide a simple HTTP client interface by wrapping the wget command line tool.
- wget :: (MonadIO m, Failure WgetException m) => String -> [(String, String)] -> [(String, String)] -> m String
- wget' :: (MonadIO m, Failure WgetException m) => String -> [(String, String)] -> [(String, String)] -> m ([(String, String)], String)
- wgetSplit :: (Monad m, Failure WgetException m) => String -> [(String, String)] -> [(String, String)] -> IO (m String)
- wgetSplit' :: (Monad m, Failure WgetException m) => String -> [(String, String)] -> [(String, String)] -> IO (m ([(String, String)], String))
- newtype WgetException = WgetException String
Documentation
Arguments
| :: (MonadIO m, Failure 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.
Arguments
| :: (MonadIO m, Failure 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.
Arguments
| :: (Monad m, Failure WgetException m) | |
| => String | The URL. |
| -> [(String, String)] | Get parameters. |
| -> [(String, String)] | Post parameters. If empty, this will be a get request. |
| -> IO (m String) | The headers and response body. |
Same as wget, but easier to access the exception on failure.
Arguments
| :: (Monad m, Failure WgetException m) | |
| => String | The URL. |
| -> [(String, String)] | Get parameters. |
| -> [(String, String)] | Post parameters. If empty, this will be a get request. |
| -> IO (m ([(String, String)], String)) | The headers and response body. |
Same as wget', but easier to access the exception on failure.