curlhs-0.0.2: bindings to libcurl, the multiprotocol file transfer library

Portabilitynon-portable
Stabilityexperimental
MaintainerKrzysztof Kardzis <kkardzis@gmail.com>
Safe HaskellSafe-Inferred

Network.Curlhs.Base

Contents

Description

Module Network.Curlhs.Base provides a direct low-level bindings to libcurl. It is basically a 1:1 mapping of the libcurl's C API, a direct translation of "curl/curl.h" header files to Haskell FFI. A higher level interface, without ubiquitous pointers and all of that C stuff, is provided through the module Network.Curlhs.Core.

Documentation about the library and/or particular functions may be found in the libcurl's manual pages or on the libcurl's project site (http://curl.haxx.se/libcurl/). Because API of this module mirrors API of the external library, particular symbols may exist or not, dependently of that, which version of libcurl is used during compilation of the package. The module as closely as possible tries to follow the original libcurl API. The main differences are in types of functions such as curl_easy_setopt and curl_easy_getinfo. Besides that all symbol names are prefixed with 'c' or 'C'.

As the name of the module may suggest, this module is a basis for the rest of curlhs package. For now exposed API is somewhat incomplete, still lacks some things (like the "multi interface"), but the aim is to provide here a complete API of libcurl, as defined in its C headers.

Synopsis

Definitions from "curl/curlver.h"

Definitions from "curl/curlbuild.h"

Definitions from "curl/curlrules.h"

Definitions from "curl/curl.h"

CURL_httppost

Callbacks

CURL_progress_callback

CURL_write_callback

CURL_fileinfo

Callbacks

CURL_chunk_bgn_callback

CURL_chunk_end_callback

CURL_fnmatch_callback

CURL_seek_callback

CURL_read_callback

CURL_sockopt_callback

CURL_opensocket_callback

CURL_closesocket_callback

CURL_ioctl_callback

newtype CCURLioerr Source

Constructors

CCURLioerr CInt 

newtype CCURLiocmd Source

Constructors

CCURLiocmd CInt 

CURL_malloc_callback

CURL_free_callback

CURL_realloc_callback

CURL_strdup_callback

CURL_calloc_callback

CURL_debug_callback

Constants

CURLcode

newtype CCURLcode Source

Constructors

CCURLcode CInt 

Callbacks

CURL_conv_callback

CURL_ssl_ctx_callback

Constants

CURLproxy

CURLauth

CURLsshauth

CURLgssapi

CURL_error_size

Callbacks

CURL_sshkey_callback

Constants

CURLusessl

CURLsslopt

CURLftpssl

CURLftpauth

CURLftpcreate

CURLftpmethod

CURLproto

CURLoption

CURLipresolve

CURLhttpver

CURLrtspreq

CURLnetrc

CURLsslver

CURLtlsauth

CURLredir

CURLtimecond

Functions

CURL_forms

Functions

ccurl_getenv :: Ptr CChar -> IO (Ptr CChar)Source

Deprecated:

CURL_slist

Functions

CURL_certinfo

Constants

CURLinfo

CURLclosepol

CURLglobal

Share interface

CURL_version_info

Functions

Definitions from "curl/easy.h"

Definitions from "curl/multi.h"