Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Instances
Eq HTTPError Source # | |
Show HTTPError Source # | |
Exception HTTPError Source # | |
Defined in HTTP.Follow toException :: HTTPError -> SomeException # fromException :: SomeException -> Maybe HTTPError # displayException :: HTTPError -> String # |
Orphan instances
MonadHttp IO Source # | Declares how to handle request errors for IO monad. |
handleHttpException :: HttpException -> IO a # |