Clear a pointer option.
Clear a pointer option. Does not raise an exception if the underlying libcurl does not support the option. Use sparingly.
Duplicate this handle.
Get the various timings like name lookup time, total time, connect time etc. The timed category is passed through the timing parameter while the timing value is stored at val. The value is usable only if res is equal to etc.c.curl.CurlError.ok.
Initialize the instance by creating a working curl handle.
Pausing and continuing transfers.
perform the curl request by doing the HTTP,FTP etc. as it has been setup beforehand.
Set a string curl option.
Set a long curl option.
Set a void* curl option.
Stop and invalidate this curl instance. Warning: Do not call this from inside a callback handler e.g. onReceive.
The event handler that gets called to inform of upload/download progress.
The event handler that receives incoming data.
The event handler that receives incoming headers for protocols that uses headers.
The event handler that gets called when the curl backend needs to seek the data to be sent.
The event handler that gets called when data is needed for sending.
The event handler that gets called when the net socket has been created but a connect() call has not yet been done. This makes it possible to set misc. socket options.
Wrapper to provide a better interface to libcurl than using the plain C API. It is recommended to use the HTTP/FTP etc. structs instead unless raw access to libcurl is needed.
Warning: This struct uses interior pointers for callbacks. Only allocate it on the stack if you never move or copy it. This also means passing by reference when passing Curl to other functions. Otherwise always allocate on the heap.