libcurl Functions

function libcurl/curl-version

Return the libcurl version

Return:

libcurl version

Rtype:

string

function libcurl/curl-easy-init

Return a libcurl easy handle

Return:

libcurl/CURL

Rtype:

C/pointer

Raises ^rt-libcurl-error:

function libcurl/curl-easy-setopt curl [kw arg]+

set libcurl easy options on curl

Param curl:

libcurl easy handle

Type curl:

libcurl/CURL

Param kw:

libcurl option

Type kw:

keyword

Param arg:

libcurl option argument

Type arg:

see below

Return:

#<unspec>

Raises ^rt-libcurl-error:

Raises ^rt-libc-format-error:

if arg contains an ASCII NUL for a string option

Raises ^rt-bignum-conversion-error:

if arg exceeds limits for a long option

kw and arg should be supplied as two arguments and any number of kw/arg tuples can be passed.

kw can be either :CURLOPT_name or :name for some libcurl option CURLOPT_name. :name is case-insensitive.

In addition kw can be :reader or :writer to use input or output handles as source or sink for libcurl data.

function libcurl/curl-easy-perform curl

perform libcurl easy transfer for curl

Param curl:

libcurl easy handle

Type curl:

libcurl/CURL

Return:

#<unspec>

Raises ^rt-libcurl-error:

function libcurl/curl-easy-reset curl

reset libcurl easy transfer for curl

Param curl:

libcurl easy handle

Type curl:

libcurl/CURL

Return:

#<unspec>

Raises ^rt-libcurl-error:

function libcurl/curl-easy-cleanup curl

cleanup libcurl easy transfer for curl

Param curl:

libcurl easy handle

Type curl:

libcurl/CURL

Return:

#<unspec>

Raises ^rt-libcurl-error:

In normal circumstances, curl_easy_cleanup(3) will be called by the garbage collector however you may need to call curl-easy-cleanup directly.

curl will be reset to a NULL pointer

Last built at 2024-05-17T06:10:53Z+0000 from 62cca4c (dev) for Idio 0.3.b.6