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.Connection

Synopsis

Documentation

dummyConnectionSource

Arguments

:: [ByteString]

input

-> IO (Connection, IO [ByteString], IO [ByteString])

conn, output, input

For testing

makeConnectionSource

Arguments

:: IO ByteString

read

-> (ByteString -> IO ())

write

-> IO ()

close

-> IO Connection 

openSocketConnectionSource

Arguments

:: Maybe HostAddress 
-> String

host

-> Int

port

-> IO Connection 

firstSuccessful :: [AddrInfo] -> (AddrInfo -> IO a) -> IO aSource