curl-1.3.6: Haskell binding to libcurl

Portabilityportable
Stabilityprovisional
MaintainerSigbjorn Finne <sof@galois.com>

Network.Curl.Types

Description

Basic set of types for the Haskell curl binding, including the Curl handle type which holds the C library stateful connection handle along with a set of cleanup actions tht should be performed upon shutting down the curl session.

Synopsis

Documentation

type CurlH = Ptr Curl_Source

curlPrim :: Curl -> (IORef OptionMap -> CurlH -> IO a) -> IO aSource

Execute a primitve curl operation. NOTE: See warnings about the use of withForeginPtr.

mkCurl :: CurlH -> IO CurlSource

Allocates a Haskell handle from a C handle.

mkCurlWithCleanup :: CurlH -> OptionMap -> IO CurlSource

Allocates a Haskell handle from a C handle.