| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HTTP.Follow
Contents
Description
This module contains HTTP functions needed and used from other modules
within the Follow library.
Synopsis
- parseUrl :: MonadThrow m => ByteString -> m EitherUrl
- getResponseBody :: (MonadHttp m, MonadThrow m) => EitherUrl -> m ByteString
- data HTTPError = URLWrongFormat
Documentation
parseUrl :: MonadThrow m => ByteString -> m EitherUrl Source #
Parses a url type from a textual representation.
getResponseBody :: (MonadHttp m, MonadThrow m) => EitherUrl -> m ByteString Source #
Performs a request to given url and returns just the response body
Constructors
| URLWrongFormat |
Instances
| Eq HTTPError Source # | |
| Show HTTPError Source # | |
| Exception HTTPError Source # | |
Defined in HTTP.Follow Methods toException :: HTTPError -> SomeException # fromException :: SomeException -> Maybe HTTPError # displayException :: HTTPError -> String # | |