ReadonlyisThis will be true if the handle was added to a MultiNativeBinding | Multi handle.
ReadonlyisThis will be true if monitorSocketEvents was called.
ReadonlyisThis will be true if close was not called.
You can set this to anything - Use it to bind some data to this Easy instance.
This will not be copied to other instaces created when duplicating this one.
Close this handle and dispose any resources bound to it. After closed, the handle MUST not be used again, doing so will throw an Error.
This is basically the same than curl_easy_cleanup()
Duplicate this handle with all their options and callbacks.
Official libcurl documentation: curl_easy_duphandle()
Official libcurl documentation: curl_easy_getinfo()
Info to retrieve. Use "Curl".Curl.info | Curl.info for predefined constants.
Returns information about the finished connection.
Official libcurl documentation: curl_easy_getinfo()
Info to retrieve. Use "Curl".Curl.info | Curl.info for predefined constants.
Start monitoring for events in the connection socket used by this handle.
This is only useful if using the onSocketEvent callback.
This method will throw an Error if the handle is already monitoring socket events.
You can use isMonitoringSockets to check if socket events are already being monitored or not.
This method is only useful when the internal polling of the connection socket is enabled by calling
monitorSocketEvents.
The passed callback is going to be called everytime there are changes to the connection socket.
One use case for this is when using the send and recv methods
A full example is available at examples/15-send-recv-methods.js
Pass null to remove the current callback set.
Using this function, you can explicitly mark a running connection to get paused, and you can unpause a connection that was previously paused.
Use the CurlPause enum for predefined constants.
Official libcurl documentation: curl_easy_pause()
Performs the entire request in a blocking manner and returns when done.
Official libcurl documentation: curl_easy_perform()
Receives data over the established connection, data will be written to the passed buffer.
See also onSocketEvent.
Official libcurl documentation: curl_easy_recv()
Reset this handle to their original state.
This method is useful if you plan to reuse this handle later on.
Official libcurl documentation: curl_easy_reset()
Sends arbitrary data over the established connection.
See also onSocketEvent.
Official libcurl documentation: curl_easy_send()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
You can either return a single CurlHstsReadCallbackResult object or an array of CurlHstsReadCallbackResult objects.
If returning an array, the callback will only be called once per request.
If returning a single object, the callback will be called multiple times until null is returned.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Use "Curl".Curl.option|Curl.option for predefined constants.
Official libcurl documentation: curl_easy_setopt()
Stop monitoring for events in the connection socket used by this handle.
This method will throw an Error if the handle is not monitoring socket events.
You can use isMonitoringSockets to check if socket events are already being monitored or not.
Perform any connection upkeep checks.
Official libcurl documentation: curl_easy_upkeep()
StaticstrReturns a description for the given error code.
Official libcurl documentation: curl_easy_strerror()
This is a Node.js wrapper around the binding EasyNativeBinding | native Easy class