Safe Haskell | None |
---|
- sinkHeaders :: (MonadThrow m, MonadResource m) => Sink ByteString m (Status, [Header])
- newline :: Parser ()
- parserHeadersFromByteString :: Monad m => ByteString -> m (Either String (Status, [Header]))
- parseChunkHeader :: Parser Int
- getUri :: Request m' -> URI
- setUri :: Failure HttpException m => Request m' -> URI -> m (Request m')
- setUriRelative :: Failure HttpException m => Request m' -> URI -> m (Request m')
- httpRedirect :: (MonadBaseControl IO m, MonadResource m, Monad m1) => Int -> (Request m1 -> m (Response (ResumableSource m1 ByteString), Maybe (Request m1))) -> (forall a. m1 a -> m a) -> Request m1 -> m (Response (ResumableSource m1 ByteString))
Documentation
sinkHeaders :: (MonadThrow m, MonadResource m) => Sink ByteString m (Status, [Header])Source
parserHeadersFromByteString :: Monad m => ByteString -> m (Either String (Status, [Header]))Source
setUri :: Failure HttpException m => Request m' -> URI -> m (Request m')Source
Validate a URI
, then add it to the request.
setUriRelative :: Failure HttpException m => Request m' -> URI -> m (Request m')Source
:: (MonadBaseControl IO m, MonadResource m, Monad m1) | |
=> Int | |
-> (Request m1 -> m (Response (ResumableSource m1 ByteString), Maybe (Request m1))) | function which performs a request and returns a response, and possibly another request if there's a redirect. |
-> (forall a. m1 a -> m a) | |
-> Request m1 | |
-> m (Response (ResumableSource m1 ByteString)) |
Redirect loop