|
| Network.Curl.Types | | Portability | portable | | Stability | provisional | | Maintainer | Sigbjorn Finne <sof@galois.com> |
|
|
|
| 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_ |
|
| type URLString = String |
|
| type Port = Long |
|
| type Long = Word32 |
|
| type LLong = Word64 |
|
| data Slist_ |
|
| data Curl |
|
| curlPrim :: Curl -> (IORef OptionMap -> CurlH -> IO a) -> IO a |
| Execute a primitve curl operation.
NOTE: See warnings about the use of withForeginPtr.
|
|
| mkCurl :: CurlH -> IO Curl |
| Allocates a Haskell handle from a C handle.
|
|
| mkCurlWithCleanup :: CurlH -> OptionMap -> IO Curl |
| Allocates a Haskell handle from a C handle.
|
|
| type OptionMap = IntMap (IO ()) |
|
| shareCleanup :: IORef OptionMap -> IO OptionMap |
|
| runCleanup :: IORef OptionMap -> IO () |
|
| updateCleanup :: IORef OptionMap -> Int -> IO () -> IO () |
|
| Produced by Haddock version 2.5.0 |