http-monad-0.1.1.2: Monad abstraction for HTTP allowing lazy transfer and non-I/O simulation
Network.Monad.Transfer.Offline
Description
Transfer type without IO interaction. Optimal for testing.
type T body = RWS ConnError [body] body Source #
class C body => Body body where Source #
Minimal complete definition
splitAt, breakAfter
Methods
splitAt :: Int -> body -> (body, body) Source #
breakAfter :: (Char -> Bool) -> body -> (body, body) Source #
Instances
splitAt :: Int -> ByteString -> (ByteString, ByteString) Source #
breakAfter :: (Char -> Bool) -> ByteString -> (ByteString, ByteString) Source #
splitAt :: Int -> [char] -> ([char], [char]) Source #
breakAfter :: (Char -> Bool) -> [char] -> ([char], [char]) Source #
withBuffer :: C body => (body -> (a, body)) -> AsyncExceptional (T body) a Source #
transfer :: Body body => T (T body) body Source #
run :: Body body => T body (T body) a -> ConnError -> body -> (a, body, [body]) Source #