second-transfer-0.10.0.2: Second Transfer HTTP/2 web server

Safe HaskellNone
LanguageHaskell2010

SecondTransfer.IOCallbacks.Coupling

Synopsis

Documentation

data Coupling

A coupling between two IOCallbacks. It is breakable...

couple :: IOCallbacks -> IOCallbacks -> IO Coupling

Connects two IO callbacks so that data received in one is sent to the other.

sendSourceToIO :: MonadIO m => Source m ByteString -> IOCallbacks -> m ()

Sends the data coming from the source to the IOCallbacks. No exceptions are handled here. This consumes the thread until it finishes. The iocallbacks is not closed.