stack-1.7.1: The Haskell Tool Stack

Safe HaskellNone
LanguageHaskell2010

Network.HTTP.StackClient

Description

Wrapper functions of Simple and Client to add the 'User-Agent' HTTP request header to each request.

Documentation

httpJSON :: (MonadIO m, FromJSON a) => Request -> m (Response a) #

httpNoBody :: MonadIO m => Request -> m (Response ()) #

withResponse :: (MonadUnliftIO m, MonadIO n) => Request -> (Response (ConduitM i ByteString n ()) -> m a) -> m a #