Portability | portable |
---|---|
Stability | provisional |
Maintainer | emertens@galois.com |
Network.Curl.Opts
Description
This module contains the various options that specify what happens
when we use perform
on a Curl
handle.
Documentation
data CurlOption Source
Constructors
the URL to use for next request; can be the full URL or just the authority/hostname.
buffer for curl to deposit error messages (must at least CURL_ERROR_SIZE bytes long). Uses standard error if not specified.
Set the Cookie: header to the given cookie (name=value pairs, semicolon-separated) string.
Embellish the outgoing request with the given list of (formatted) header values.
Number of secs since Jan 1, 1970. Interpretation is determined by CurlTimeCondition.
Not sure what this one does; something about passing it to the output function.
Interface name of outgoing network interface ( network interface, IP address, host name.)
Kerberos security level (clear, safe, confidential, private are good values, seemingly.)
Force the opening up a new connection rather than try to reuse active connections. Default is not to.
Perform Common name checking in peer certificate (1=> existence;2=> matches hostname.)
Colon-separated string list of cipher preferences to use for upcoming connection (e.g., 3DES:+RSA)
Make crypto engine the default for crypto operations.
Turn (down, presumably) the buffers the received data is chunked up into (and reported to the WriteFunction.) A hint, library is free to ignore.
Alternatives to standard 200 OK response strings; whatever it takes, I suppose.
callback to handle setting up SSL connections; have the power to abort them.
Wider alternative of option giving upper bound of uploaded content (-1 => unknown.)
Cookie string to pass cookie engine; ALL scrubs all cookie info; SESS scrubs session ones.
If Content-Length: values are troublesome (wrong, perhaps?), use this option to ignore using them as guidance.
Number of attempts at finding local ports (using LocalPort as initial base.)
If enabled, perform all steps up until actual transfer. next three for completeness.
Max number of milliseconds that a connection attempt may take to complete.
Instances
data HttpVersion Source
Instances
data NetRcOption Source
Instances
Constructors
toHttpAuthMask :: [HttpAuth] -> Long Source
data SSHAuthType Source
Instances
toSSHAuthMask :: [SSHAuthType] -> Long Source
Constructors
baseObject :: Int Source
unmarshallOption :: Unmarshaller a -> CurlOption -> IO aSource
data Unmarshaller a Source
Constructors
Fields
- u_long :: Int -> Long -> IO a
- u_llong :: Int -> LLong -> IO a
- u_string :: Int -> String -> IO a
- u_strings :: Int -> [String] -> IO a
- u_ptr :: Int -> Ptr () -> IO a
- u_writeFun :: Int -> WriteFunction -> IO a
- u_readFun :: Int -> ReadFunction -> IO a
- u_progressFun :: Int -> ProgressFunction -> IO a
- u_debugFun :: Int -> DebugFunction -> IO a
- u_posts :: Int -> [HttpPost] -> IO a
- u_sslctxt :: Int -> SSLCtxtFunction -> IO a
- u_ioctl_fun :: Int -> Ptr () -> IO a
- u_convFromNetwork :: Int -> Ptr () -> IO a
- u_convToNetwork :: Int -> Ptr () -> IO a
- u_convFromUtf8 :: Int -> Ptr () -> IO a
- u_sockoptFun :: Int -> Ptr () -> IO a
showCurlOption :: CurlOption -> String Source