Safe Haskell | Safe-Inferred |
---|
Deprecated: use Network.HTTP.Toolkit.InputStream instead
- type Connection = InputStream
- data InputStream = InputStream {
- _read :: IO ByteString
- _unread :: ByteString -> IO ()
- makeConnection :: IO ByteString -> IO Connection
- connectionFromHandle :: Handle -> IO Connection
- connectionRead :: Connection -> IO ByteString
- connectionUnread :: Connection -> ByteString -> IO ()
- connectionReadAtLeast :: Connection -> Int -> IO ByteString
Documentation
type Connection = InputStreamSource
data InputStream Source
An abstraction for input streams that allows to read and unread input.
InputStream | |
|
connectionUnread :: Connection -> ByteString -> IO ()Source
connectionReadAtLeast :: Connection -> Int -> IO ByteStringSource