follow-0.1.0.0: Haskell library to follow content published on any subject.

Safe HaskellNone
LanguageHaskell2010

HTTP.Follow

Contents

Description

This module contains HTTP functions needed and used from other modules within the Follow library.

Synopsis

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

data HTTPError Source #

Constructors

URLWrongFormat 
Instances
Eq HTTPError Source # 
Instance details

Defined in HTTP.Follow

Show HTTPError Source # 
Instance details

Defined in HTTP.Follow

Exception HTTPError Source # 
Instance details

Defined in HTTP.Follow

Orphan instances

MonadHttp IO Source #

Declares how to handle request errors for IO monad.

Instance details