http-client-0.1.0.0: An HTTP client engine, intended as a base layer for more user-friendly packages.

Safe HaskellNone

Network.HTTP.Client.Util

Synopsis

Documentation

hGetSome :: Handle -> Int -> IO ByteString

Like hGet, except that a shorter ByteString may be returned if there are not enough bytes immediately available to satisfy the whole request. hGetSome only blocks if there is no data available, and EOF has not yet been reached.

(<>) :: Monoid m => m -> m -> mSource

hasNoBodySource

Arguments

:: ByteString

request method

-> Int

status code

-> Bool 

fromStrict :: ByteString -> ByteString

O(1) Convert a strict ByteString into a lazy ByteString.