node-libcurl
- Version 5.0.1
- Published
- 1.28 MB
- 7 dependencies
- MIT license
Install
npm i node-libcurlyarn add node-libcurlpnpm add node-libcurlOverview
node-libcurl
Index
Variables
Classes
Curl
- chunks
- chunksLength
- cleanupReadFunctionStreamEvents()
- close()
- defaultHeaderFunction()
- defaultUserAgent
- defaultWriteFunction()
- defaultWriteFunctionStreamBased()
- disable()
- dupHandle()
- enable()
- features
- getCount
- getHeaders()
- getVersion
- getVersionInfo
- getVersionInfoString
- globalCleanup
- globalInit
- handle
- headerChunks
- headerChunksLength
- id
- info
- isOpen
- isRunning
- isVersionGreaterOrEqualThan
- multiInstance
- nextPauseFlags
- onEnd()
- onError()
- option
- pause()
- perform()
- readFunctionStream
- reset()
- resetInternalState()
- setMimePost()
- setMulti()
- setProgressCallback()
- setStreamProgressCallback()
- setStreamResponseHighWaterMark()
- setUploadStream()
- streamContinueNext
- streamError
- streamModeProgressFunction()
- streamPauseNext
- streamPendingReadSize
- streamReadFunctionCallbacksToClean
- streamReadFunctionPaused
- streamReadFunctionShouldEnd
- streamReadFunctionShouldPause
- streamUserSuppliedProgressFunction
- streamWriteFunctionHighWaterMark
- upkeep()
- VERSION_NUM
- writeFunctionStream
Interfaces
CurlInfo
- ACTIVESOCKET
- APPCONNECT_TIME
- APPCONNECT_TIME_T
- CAINFO
- CAPATH
- CERTINFO
- CONDITION_UNMET
- CONN_ID
- CONNECT_TIME
- CONNECT_TIME_T
- CONTENT_LENGTH_DOWNLOAD
- CONTENT_LENGTH_DOWNLOAD_T
- CONTENT_LENGTH_UPLOAD
- CONTENT_LENGTH_UPLOAD_T
- CONTENT_TYPE
- COOKIELIST
- EARLYDATA_SENT_T
- EFFECTIVE_METHOD
- EFFECTIVE_URL
- FILETIME
- FILETIME_T
- FTP_ENTRY_PATH
- HEADER_SIZE
- HTTP_CONNECTCODE
- HTTP_VERSION
- HTTPAUTH_AVAIL
- HTTPAUTH_USED
- LASTSOCKET
- LOCAL_IP
- LOCAL_PORT
- NAMELOOKUP_TIME
- NAMELOOKUP_TIME_T
- NUM_CONNECTS
- OS_ERRNO
- POSTTRANSFER_TIME_T
- PRETRANSFER_TIME
- PRETRANSFER_TIME_T
- PRIMARY_IP
- PRIMARY_PORT
- PRIVATE
- PROTOCOL
- PROXY_ERROR
- PROXY_SSL_VERIFYRESULT
- PROXYAUTH_AVAIL
- PROXYAUTH_USED
- QUEUE_TIME_T
- REDIRECT_COUNT
- REDIRECT_TIME
- REDIRECT_TIME_T
- REDIRECT_URL
- REFERER
- REQUEST_SIZE
- RESPONSE_CODE
- RETRY_AFTER
- RTSP_CLIENT_CSEQ
- RTSP_CSEQ_RECV
- RTSP_SERVER_CSEQ
- RTSP_SESSION_ID
- SCHEME
- SIZE_DOWNLOAD
- SIZE_DOWNLOAD_T
- SIZE_UPLOAD
- SIZE_UPLOAD_T
- SPEED_DOWNLOAD
- SPEED_DOWNLOAD_T
- SPEED_UPLOAD
- SPEED_UPLOAD_T
- SSL_ENGINES
- SSL_VERIFYRESULT
- STARTTRANSFER_TIME
- STARTTRANSFER_TIME_T
- TLS_SESSION
- TLS_SSL_PTR
- TOTAL_TIME
- TOTAL_TIME_T
- USED_PROXY
- XFER_ID
CurlOption
- ABSTRACT_UNIX_SOCKET
- ACCEPT_ENCODING
- ACCEPTTIMEOUT_MS
- ADDRESS_SCOPE
- ALTSVC
- ALTSVC_CTRL
- APPEND
- AUTOREFERER
- AWS_SIGV4
- BUFFERSIZE
- CA_CACHE_TIMEOUT
- CAINFO
- CAINFO_BLOB
- CAPATH
- CERTINFO
- CHUNK_BGN_FUNCTION
- CHUNK_END_FUNCTION
- CONNECT_ONLY
- CONNECT_TO
- CONNECTTIMEOUT
- CONNECTTIMEOUT_MS
- COOKIE
- COOKIEFILE
- COOKIEJAR
- COOKIELIST
- COOKIESESSION
- CRLF
- CRLFILE
- CUSTOMREQUEST
- DEBUGFUNCTION
- DEFAULT_PROTOCOL
- DIRLISTONLY
- DISALLOW_USERNAME_IN_URL
- DNS_CACHE_TIMEOUT
- DNS_INTERFACE
- DNS_LOCAL_IP4
- DNS_LOCAL_IP6
- DNS_SERVERS
- DNS_SHUFFLE_ADDRESSES
- DNS_USE_GLOBAL_CACHE
- DOH_SSL_VERIFYHOST
- DOH_SSL_VERIFYPEER
- DOH_SSL_VERIFYSTATUS
- DOH_URL
- ECH
- EGDSOCKET
- EXPECT_100_TIMEOUT_MS
- FAILONERROR
- FILETIME
- FNMATCH_FUNCTION
- FOLLOWLOCATION
- FORBID_REUSE
- FRESH_CONNECT
- FTP_ACCOUNT
- FTP_ALTERNATIVE_TO_USER
- FTP_CREATE_MISSING_DIRS
- FTP_FILEMETHOD
- FTP_SKIP_PASV_IP
- FTP_SSL_CCC
- FTP_USE_EPRT
- FTP_USE_EPSV
- FTP_USE_PRET
- FTPPORT
- FTPSSLAUTH
- GSSAPI_DELEGATION
- HAPPY_EYEBALLS_TIMEOUT_MS
- HAPROXY_CLIENT_IP
- HAPROXYPROTOCOL
- HEADER
- HEADERFUNCTION
- HEADEROPT
- HSTS
- HSTS_CTRL
- HSTSREADFUNCTION
- HSTSWRITEFUNCTION
- HTTP_CONTENT_DECODING
- HTTP_TRANSFER_DECODING
- HTTP_VERSION
- HTTP09_ALLOWED
- HTTP200ALIASES
- HTTPAUTH
- HTTPGET
- HTTPHEADER
- HTTPPOST
- HTTPPROXYTUNNEL
- IGNORE_CONTENT_LENGTH
- INFILESIZE
- INFILESIZE_LARGE
- INTERFACE
- INTERLEAVEFUNCTION
- IPRESOLVE
- ISSUERCERT
- ISSUERCERT_BLOB
- KEEP_SENDING_ON_ERROR
- KEYPASSWD
- KRBLEVEL
- LOCALPORT
- LOCALPORTRANGE
- LOGIN_OPTIONS
- LOW_SPEED_LIMIT
- LOW_SPEED_TIME
- MAIL_AUTH
- MAIL_FROM
- MAIL_RCPT
- MAIL_RCPT_ALLOWFAILS
- MAX_RECV_SPEED_LARGE
- MAX_SEND_SPEED_LARGE
- MAXAGE_CONN
- MAXCONNECTS
- MAXFILESIZE
- MAXFILESIZE_LARGE
- MAXLIFETIME_CONN
- MAXREDIRS
- MIME_OPTIONS
- MIMEPOST
- NETRC
- NETRC_FILE
- NEW_DIRECTORY_PERMS
- NEW_FILE_PERMS
- NOBODY
- NOPROGRESS
- NOPROXY
- NOSIGNAL
- PASSWORD
- PATH_AS_IS
- PINNEDPUBLICKEY
- PIPEWAIT
- PORT
- POST
- POSTFIELDS
- POSTFIELDSIZE
- POSTFIELDSIZE_LARGE
- POSTQUOTE
- POSTREDIR
- PRE_PROXY
- PREQUOTE
- PREREQFUNCTION
- PROGRESSFUNCTION
- PROTOCOLS
- PROTOCOLS_STR
- PROXY
- PROXY_CAINFO
- PROXY_CAINFO_BLOB
- PROXY_CAPATH
- PROXY_CRLFILE
- PROXY_ISSUERCERT
- PROXY_ISSUERCERT_BLOB
- PROXY_KEYPASSWD
- PROXY_PINNEDPUBLICKEY
- PROXY_SERVICE_NAME
- PROXY_SSL_CIPHER_LIST
- PROXY_SSL_OPTIONS
- PROXY_SSL_VERIFYHOST
- PROXY_SSL_VERIFYPEER
- PROXY_SSLCERT
- PROXY_SSLCERT_BLOB
- PROXY_SSLCERTTYPE
- PROXY_SSLKEY
- PROXY_SSLKEY_BLOB
- PROXY_SSLKEYTYPE
- PROXY_SSLVERSION
- PROXY_TLS13_CIPHERS
- PROXY_TLSAUTH_PASSWORD
- PROXY_TLSAUTH_TYPE
- PROXY_TLSAUTH_USERNAME
- PROXY_TRANSFER_MODE
- PROXYAUTH
- PROXYHEADER
- PROXYPASSWORD
- PROXYPORT
- PROXYTYPE
- PROXYUSERNAME
- PROXYUSERPWD
- PUT
- QUICK_EXIT
- QUOTE
- RANDOM_FILE
- RANGE
- READDATA
- READFUNCTION
- REDIR_PROTOCOLS
- REDIR_PROTOCOLS_STR
- REFERER
- REQUEST_TARGET
- RESOLVE
- RESUME_FROM
- RESUME_FROM_LARGE
- RTSP_CLIENT_CSEQ
- RTSP_REQUEST
- RTSP_SERVER_CSEQ
- RTSP_SESSION_ID
- RTSP_STREAM_URI
- RTSP_TRANSPORT
- SASL_AUTHZID
- SASL_IR
- SEEKFUNCTION
- SERVER_RESPONSE_TIMEOUT
- SERVER_RESPONSE_TIMEOUT_MS
- SERVICE_NAME
- SHARE
- SOCKS5_AUTH
- SOCKS5_GSSAPI_NEC
- SOCKS5_GSSAPI_SERVICE
- SSH_AUTH_TYPES
- SSH_COMPRESSION
- SSH_HOST_PUBLIC_KEY_MD5
- SSH_HOST_PUBLIC_KEY_SHA256
- SSH_HOSTKEYFUNCTION
- SSH_KNOWNHOSTS
- SSH_PRIVATE_KEYFILE
- SSH_PUBLIC_KEYFILE
- SSL_CIPHER_LIST
- SSL_EC_CURVES
- SSL_ENABLE_ALPN
- SSL_ENABLE_NPN
- SSL_FALSESTART
- SSL_OPTIONS
- SSL_SESSIONID_CACHE
- SSL_SIGNATURE_ALGORITHMS
- SSL_VERIFYHOST
- SSL_VERIFYPEER
- SSL_VERIFYSTATUS
- SSLCERT
- SSLCERT_BLOB
- SSLCERTTYPE
- SSLENGINE
- SSLENGINE_DEFAULT
- SSLKEY
- SSLKEY_BLOB
- SSLKEYTYPE
- SSLVERSION
- STREAM_DEPENDS
- STREAM_DEPENDS_E
- STREAM_WEIGHT
- SUPPRESS_CONNECT_HEADERS
- TCP_FASTOPEN
- TCP_KEEPALIVE
- TCP_KEEPCNT
- TCP_KEEPIDLE
- TCP_KEEPINTVL
- TCP_NODELAY
- TELNETOPTIONS
- TFTP_BLKSIZE
- TFTP_NO_OPTIONS
- TIMECONDITION
- TIMEOUT
- TIMEOUT_MS
- TIMEVALUE
- TIMEVALUE_LARGE
- TLS13_CIPHERS
- TLSAUTH_PASSWORD
- TLSAUTH_TYPE
- TLSAUTH_USERNAME
- TRAILERFUNCTION
- TRANSFER_ENCODING
- TRANSFERTEXT
- UNIX_SOCKET_PATH
- UNRESTRICTED_AUTH
- UPKEEP_INTERVAL_MS
- UPLOAD
- UPLOAD_BUFFERSIZE
- UPLOAD_FLAGS
- URL
- USE_SSL
- USERAGENT
- USERNAME
- USERPWD
- VERBOSE
- WILDCARDMATCH
- WRITEFUNCTION
- WS_OPTIONS
- XFERINFOFUNCTION
- XOAUTH2_BEARER
Enums
CurlCode
- CURLE_ABORTED_BY_CALLBACK
- CURLE_AGAIN
- CURLE_AUTH_ERROR
- CURLE_BAD_CONTENT_ENCODING
- CURLE_BAD_DOWNLOAD_RESUME
- CURLE_BAD_FUNCTION_ARGUMENT
- CURLE_CHUNK_FAILED
- CURLE_CONV_FAILED
- CURLE_CONV_REQD
- CURLE_COULDNT_CONNECT
- CURLE_COULDNT_RESOLVE_HOST
- CURLE_COULDNT_RESOLVE_PROXY
- CURLE_ECH_REQUIRED
- CURLE_FAILED_INIT
- CURLE_FILE_COULDNT_READ_FILE
- CURLE_FILESIZE_EXCEEDED
- CURLE_FTP_ACCEPT_FAILED
- CURLE_FTP_ACCEPT_TIMEOUT
- CURLE_FTP_ACCESS_DENIED
- CURLE_FTP_BAD_DOWNLOAD_RESUME
- CURLE_FTP_BAD_FILE_LIST
- CURLE_FTP_CANT_GET_HOST
- CURLE_FTP_COULDNT_RETR_FILE
- CURLE_FTP_COULDNT_SET_BINARY
- CURLE_FTP_COULDNT_SET_TYPE
- CURLE_FTP_COULDNT_STOR_FILE
- CURLE_FTP_COULDNT_USE_REST
- CURLE_FTP_PARTIAL_FILE
- CURLE_FTP_PORT_FAILED
- CURLE_FTP_PRET_FAILED
- CURLE_FTP_QUOTE_ERROR
- CURLE_FTP_SSL_FAILED
- CURLE_FTP_WEIRD_227_FORMAT
- CURLE_FTP_WEIRD_PASS_REPLY
- CURLE_FTP_WEIRD_PASV_REPLY
- CURLE_FTP_WEIRD_SERVER_REPLY
- CURLE_FUNCTION_NOT_FOUND
- CURLE_GOT_NOTHING
- CURLE_HTTP_NOT_FOUND
- CURLE_HTTP_PORT_FAILED
- CURLE_HTTP_POST_ERROR
- CURLE_HTTP_RANGE_ERROR
- CURLE_HTTP_RETURNED_ERROR
- CURLE_HTTP2
- CURLE_HTTP2_STREAM
- CURLE_HTTP3
- CURLE_INTERFACE_FAILED
- CURLE_LAST
- CURLE_LDAP_CANNOT_BIND
- CURLE_LDAP_INVALID_URL
- CURLE_LDAP_SEARCH_FAILED
- CURLE_LOGIN_DENIED
- CURLE_NO_CONNECTION_AVAILABLE
- CURLE_NOT_BUILT_IN
- CURLE_OBSOLETE20
- CURLE_OBSOLETE24
- CURLE_OBSOLETE29
- CURLE_OBSOLETE32
- CURLE_OBSOLETE40
- CURLE_OBSOLETE44
- CURLE_OBSOLETE46
- CURLE_OBSOLETE50
- CURLE_OBSOLETE51
- CURLE_OBSOLETE57
- CURLE_OK
- CURLE_OPERATION_TIMEDOUT
- CURLE_OPERATION_TIMEOUTED
- CURLE_OUT_OF_MEMORY
- CURLE_PARTIAL_FILE
- CURLE_PEER_FAILED_VERIFICATION
- CURLE_PROXY
- CURLE_QUIC_CONNECT_ERROR
- CURLE_QUOTE_ERROR
- CURLE_RANGE_ERROR
- CURLE_READ_ERROR
- CURLE_RECURSIVE_API_CALL
- CURLE_RECV_ERROR
- CURLE_REMOTE_ACCESS_DENIED
- CURLE_REMOTE_DISK_FULL
- CURLE_REMOTE_FILE_EXISTS
- CURLE_REMOTE_FILE_NOT_FOUND
- CURLE_RTSP_CSEQ_ERROR
- CURLE_RTSP_SESSION_ERROR
- CURLE_SEND_ERROR
- CURLE_SEND_FAIL_REWIND
- CURLE_SETOPT_OPTION_SYNTAX
- CURLE_SSH
- CURLE_SSL_CACERT
- CURLE_SSL_CACERT_BADFILE
- CURLE_SSL_CERTPROBLEM
- CURLE_SSL_CIPHER
- CURLE_SSL_CLIENTCERT
- CURLE_SSL_CONNECT_ERROR
- CURLE_SSL_CRL_BADFILE
- CURLE_SSL_ENGINE_INITFAILED
- CURLE_SSL_ENGINE_NOTFOUND
- CURLE_SSL_ENGINE_SETFAILED
- CURLE_SSL_INVALIDCERTSTATUS
- CURLE_SSL_ISSUER_ERROR
- CURLE_SSL_PEER_CERTIFICATE
- CURLE_SSL_PINNEDPUBKEYNOTMATCH
- CURLE_SSL_SHUTDOWN_FAILED
- CURLE_TELNET_OPTION_SYNTAX
- CURLE_TFTP_DISKFULL
- CURLE_TFTP_EXISTS
- CURLE_TFTP_ILLEGAL
- CURLE_TFTP_NOSUCHUSER
- CURLE_TFTP_NOTFOUND
- CURLE_TFTP_PERM
- CURLE_TFTP_UNKNOWNID
- CURLE_TOO_LARGE
- CURLE_TOO_MANY_REDIRECTS
- CURLE_UNKNOWN_OPTION
- CURLE_UNKNOWN_TELNET_OPTION
- CURLE_UNRECOVERABLE_POLL
- CURLE_UNSUPPORTED_PROTOCOL
- CURLE_UPLOAD_FAILED
- CURLE_URL_MALFORMAT
- CURLE_USE_SSL_FAILED
- CURLE_WEIRD_SERVER_REPLY
- CURLE_WRITE_ERROR
CurlPx
- BadAddressType
- BadVersion
- Closed
- Gssapi
- GssapiPermsg
- GssapiProtection
- Identd
- IdentdDiffer
- LongHostname
- LongPasswd
- LongUser
- NoAuth
- Ok
- RecvAddress
- RecvAuth
- RecvConnect
- RecvReqack
- ReplyAddressTypeNotSupported
- ReplyCommandNotSupported
- ReplyConnectionRefused
- ReplyGeneralServerFailure
- ReplyHostUnreachable
- ReplyNetworkUnreachable
- ReplyNotAllowed
- ReplyTtlExpired
- ReplyUnassigned
- RequestFailed
- ResolveHost
- SendAuth
- SendConnect
- SendRequest
- UnknownFail
- UnknownMode
- UserRejected
Type Aliases
Variables
variable curly
const curly: CurlyFunction;Curly function
Modifiers
@public
Classes
class Curl
class Curl extends EventEmitter {}constructor
constructor(cloneHandle?: Easy);Parameter cloneHandle
`Easy` handle that should be used instead of creating a new one.
property chunks
protected chunks: Buffer[];Stores current response payload.
This will not store anything in case `NoDataStorage` flag is enabled
property chunksLength
protected chunksLength: number;Current response length.
Will always be zero in case `NoDataStorage` flag is enabled
property defaultUserAgent
static defaultUserAgent: string;This is the default user agent that is going to be used on all
Curlinstances.You can overwrite this in a per instance basis, calling
curlHandle.setOpt('USERAGENT', 'my-user-agent/1.0'), or by directly changing this property so it affects all newly createdCurlinstances.To disable this behavior set this property to
null.
property features
protected features: CurlFeature;property getCount
static getCount: () => number;Returns the number of handles currently open in the internal `Multi` handle being used.
property getVersion
static getVersion: () => string;Returns libcurl version string.
The string shows which libraries libcurl was built with and their versions, example:
libcurl/7.69.1-DEV OpenSSL/1.1.1d zlib/1.2.11 WinIDN libssh2/1.9.0_DEV nghttp2/1.40.0
property getVersionInfo
static getVersionInfo: () => import('./types').CurlVersionInfoNativeBindingObject;Returns an object with a representation of the current libcurl version and their features/protocols.
This is basically [
curl_version_info()](https://curl.haxx.se/libcurl/c/curl_version_info.html)
property getVersionInfoString
static getVersionInfoString: () => string;Returns a string that looks like the one returned by
curl -VExample:
Version: libcurl/7.69.1-DEV OpenSSL/1.1.1d zlib/1.2.11 WinIDN libssh2/1.9.0_DEV nghttp2/1.40.0Protocols: dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftpFeatures: AsynchDNS, IDN, IPv6, Largefile, SSPI, Kerberos, SPNEGO, NTLM, SSL, libz, HTTP2, HTTPS-proxy
property globalCleanup
static globalCleanup: () => void;Calls [
curl_global_cleanup()](http://curl.haxx.se/libcurl/c/curl_global_cleanup.html)This is automatically called when the process is exiting.
Deprecated
Does nothing, do not call. This is called by the addon itself when the environment is being unloaded.
property globalInit
static globalInit: () => void;Calls [
curl_global_init()](http://curl.haxx.se/libcurl/c/curl_global_init.html).For **flags** see the the enum `CurlGlobalInit`.
This is automatically called when the addon is loaded, and there is no way to disable it.
This is a no-op now, and the call itself is deprecated.
Deprecated
property handle
readonly handle: Easy;The internal Easy handle being used
property headerChunks
protected headerChunks: Buffer[];Stores current headers payload.
This will not store anything in case `NoDataStorage` flag is enabled
property headerChunksLength
protected headerChunksLength: number;Current headers length.
Will always be zero in case `NoDataStorage` flag is enabled
property id
readonly id: number;Returns the unique ID of the Easy handle.
The value is unique across threads.
property info
static info: CurlInfo;This is a object with members resembling the
CURLINFO_*libcurl constants.It can be used with `Easy#getInfo` or `Curl#getInfo`.
See the official documentation of [
curl_easy_getinfo()](http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html) for reference.CURLINFO_EFFECTIVE_URLbecomesCurl.info.EFFECTIVE_URL
property isOpen
readonly isOpen: boolean;Whether this instance is closed or not (`close()` was called).
Make sure to not change their value, otherwise unexpected behavior would happen.
property isRunning
isRunning: boolean;Whether this instance is running or not (`perform()` was called).
Make sure to not change their value, otherwise unexpected behavior would happen.
This is marked as protected only with the TSDoc to not cause a breaking change.
property isVersionGreaterOrEqualThan
static isVersionGreaterOrEqualThan: ( x: number, y: number, z?: number) => boolean;Useful if you want to check if the current libcurl version is greater or equal than another one.
Parameter x
major
Parameter y
minor
Parameter z
patch
property multiInstance
protected multiInstance?: Multi;Optional Multi instance to use for performing requests. If not set, uses the default shared Multi instance.
property nextPauseFlags
protected nextPauseFlags: CurlPause;property option
static option: CurlOption;This is a object with members resembling the
CURLOPT_*libcurl constants.It can be used with `Easy#setOpt` or `Curl#setOpt`.
See the official documentation of [
curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) for reference.CURLOPT_URLbecomesCurl.option.URL
property readFunctionStream
protected readFunctionStream: any;property streamContinueNext
protected streamContinueNext: boolean;property streamError
protected streamError: false | Error;property streamPauseNext
protected streamPauseNext: boolean;property streamPendingReadSize
protected streamPendingReadSize: number;property streamReadFunctionCallbacksToClean
protected streamReadFunctionCallbacksToClean: [ Readable, string, (...args: any[]) => void][];property streamReadFunctionPaused
protected streamReadFunctionPaused: boolean;property streamReadFunctionShouldEnd
protected streamReadFunctionShouldEnd: boolean;property streamReadFunctionShouldPause
protected streamReadFunctionShouldPause: boolean;property streamUserSuppliedProgressFunction
protected streamUserSuppliedProgressFunction: ( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number) => number;property streamWriteFunctionHighWaterMark
protected streamWriteFunctionHighWaterMark: number;property VERSION_NUM
static VERSION_NUM: number;Integer representing the current libcurl version.
It was built the following way:
<8 bits major number> | <8 bits minor number> | <8 bits patch number>.Version
7.69.1is therefore returned as0x074501/476417
property writeFunctionStream
protected writeFunctionStream: any;method cleanupReadFunctionStreamEvents
protected cleanupReadFunctionStreamEvents: () => void;When uploading a stream (by calling `setUploadStream`) some event listeners are attached to the stream instance. This will remove them so our callbacks are not called anymore.
method close
close: () => void;Close this handle.
**NOTE:** After closing the handle, it must not be used anymore. Doing so will throw an error.
Official libcurl documentation: [
curl_easy_cleanup()](http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html)
method defaultHeaderFunction
protected defaultHeaderFunction: ( chunk: Buffer, size: number, nmemb: number) => number;This is the default callback passed to `setOpt('HEADERFUNCTION', cb)`.
method defaultWriteFunction
protected defaultWriteFunction: ( chunk: Buffer, size: number, nmemb: number) => number;This is the default callback passed to `setOpt('WRITEFUNCTION', cb)`.
method defaultWriteFunctionStreamBased
protected defaultWriteFunctionStreamBased: ( chunk: Buffer, size: number, nmemb: number) => number;This is used by the default callback passed to `setOpt('WRITEFUNCTION', cb)` when the feature to stream response is enabled.
method disable
disable: (bitmask: CurlFeature) => this;Disables a feature, must not be used while a request is running.
Use `CurlFeature` for predefined constants.
method dupHandle
dupHandle: (shouldCopyEventListeners?: boolean) => Curl;Duplicate this handle with all their options. Keep in mind that, by default, this also means all event listeners.
Official libcurl documentation: [
curl_easy_duphandle()](http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html)Parameter shouldCopyEventListeners
If you don't want to copy the event listeners, set this to
false.
method enable
enable: (bitmask: CurlFeature) => this;Enables a feature, must not be used while a request is running.
Use `CurlFeature` for predefined constants.
method getHeaders
protected getHeaders: () => Buffer<ArrayBuffer> | HeaderInfo[];Returns headers from the current stored chunks - if any
method onEnd
onEnd: () => void;Callback called when this handle has finished the request.
This is called from the internal callback we use with the `onMessage` method of the global `Multi` handle used by all
Curlinstances.This should not be called in any other way.
method onError
onError: (error: Error, errorCode: CurlCode) => void;Callback called when an error is thrown on this handle.
This is called from the internal callback we use with the `onMessage` method of the global `Multi` handle used by all
Curlinstances.
method pause
pause: (bitmask: CurlPause) => this;Use this function to pause / unpause a connection.
The bitmask argument is a set of bits that sets the new state of the connection.
Use `CurlPause` for predefined constants.
Official libcurl documentation: [
curl_easy_pause()](http://curl.haxx.se/libcurl/c/curl_easy_pause.html)
method perform
perform: () => this;Add this instance to the processing queue. This method should be called only one time per request, otherwise it will throw an error.
Remarks
This basically calls the `Multi#addHandle` method.
method reset
reset: () => this;Reset this handle options to their defaults.
This will put the handle in a clean state, as if it was just created.
Official libcurl documentation: [
curl_easy_reset()](http://curl.haxx.se/libcurl/c/curl_easy_reset.html)
method resetInternalState
protected resetInternalState: () => void;This is used to reset a few properties to their pre-request state.
method setMimePost
setMimePost: (parts: CurlyMimePart[]) => this;Build and set a MIME structure from a declarative configuration.
This method delegates to `Easy.setMimePost` on the internal `Easy` handle, which builds a CurlMime structure from the provided part specifications and sets it using the
MIMEPOSToption.Available since libcurl 7.56.0.
Parameter parts
Array of MIME part specifications
Returns
This Curl instance for method chaining
method setMulti
setMulti: (multi: Multi | undefined) => this;Sets a custom Multi instance to use for performing requests.
This allows for HTTP/2 connection isolation - each Multi instance maintains its own connection pool, ensuring requests don't share connections between different Multi instances.
Parameter multi
The Multi instance to use, or undefined to use the default shared instance
Returns
This Curl instance for method chaining
Example 1
const multi = new Multi()const curl = new Curl()curl.setMulti(multi)curl.setOpt('URL', 'https://example.com')curl.perform()
method setProgressCallback
setProgressCallback: ( cb: ( dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number) => this;The option
XFERINFOFUNCTIONwas introduced in curl version7.32.0, versions older than that should usePROGRESSFUNCTION. If you don't want to mess with version numbers you can use this method, instead of directly calling `Curl#setOpt`.NOPROGRESSshould be set to false to make this function actually get called.
method setStreamProgressCallback
setStreamProgressCallback: (cb: CurlOptionValueType['xferInfoFunction']) => this;This sets the callback to be used as the progress function when using any of the stream features.
This is needed because when this
Curlinstance is enabled to use streams for upload/download, it needs to set the libcurl progress function option to an internal function.If you are using any of the streams features, do not overwrite the progress callback to something else, be it using `setOpt` or `setProgressCallback`, as this would cause undefined behavior.
If are using this callback, there is no need to set the
NOPROGRESSoption to false (as you normally would).
method setStreamResponseHighWaterMark
setStreamResponseHighWaterMark: (highWaterMark: number | null) => this;Set the param to
nullto use the Node.js default value.Parameter highWaterMark
This will passed directly to the
Readablestream created to be returned as the response'Remarks
Only useful when the `StreamResponse` feature flag is enabled.
method setUploadStream
setUploadStream: (stream: Readable | null) => this;This will set an internal
READFUNCTIONcallback that will read all the data from this stream.One usage for that is to upload data directly from streams. Example:
const curl = new Curl()curl.setOpt('URL', 'https://some-domain/upload')curl.setOpt('UPLOAD', true)// so we do not need to set the content lengthcurl.setOpt('HTTPHEADER', ['Transfer-Encoding: chunked'])const filePath = './test.zip'const stream = fs.createReadStream(filePath)curl.setUploadStream(stream)curl.setStreamProgressCallback(() => {// this will use the default progress callback from libcurlreturn CurlProgressFunc.Continue})curl.on('end', (statusCode, data) => {console.log('\n'.repeat(5))// data length should be 0, as it was sent using the response streamconsole.log(`curl - end - status: ${statusCode} - data length: ${data.length}`,)curl.close()})curl.on('error', (error, errorCode) => {console.log('\n'.repeat(5))console.error('curl - error: ', error, errorCode)curl.close()})curl.perform()Multiple calls with the same stream that was previously set has no effect.
Setting this to
nullwill remove theREADFUNCTIONcallback and disable this behavior.Remarks
This option is reset after each request, so if you want to upload the same data again using the same
Curlinstance, you will need to provide a new stream.Make sure your libcurl version is greater than or equal 7.69.1. Versions older than that one are not reliable for streams usage.
method streamModeProgressFunction
protected streamModeProgressFunction: ( dltotal: number, dlnow: number, ultotal: number, ulnow: number) => number;The internal function passed to
PROGRESSFUNCTION(XFERINFOFUNCTIONon most recent libcurl versions) when using any of the stream features.
method upkeep
upkeep: () => this;Perform any connection upkeep checks.
Official libcurl documentation: [
curl_easy_upkeep()](http://curl.haxx.se/libcurl/c/curl_easy_upkeep.html)
class CurlEasyError
class CurlEasyError extends CurlError {}constructor
constructor(message: string, code: CurlCode, errorOptions?: ErrorOptions);property code
readonly code: CurlCode;property name
static readonly name: string;class CurlMime
class CurlMime {}CurlMimeclass that acts as a wrapper around the native libcurl mime handle. > [C++ source code](https://github.com/JCMais/node-libcurl/blob/master/src/CurlMime.cc)This class is used to create MIME structures for multipart form data uploads. It replaces the deprecated HTTPPOST option and provides more flexibility and features.
Remarks
The MIME API is available in libcurl 7.56.0 and later. If you're using an older version of libcurl, you'll need to use the deprecated HTTPPOST option instead.
Example 1
Basic usage:
import { Curl, CurlMime } from 'node-libcurl'const curl = new Curl()const mime = new CurlMime(curl)mime.addPart().setName('field_name').setData('field_value')mime.addPart().setName('file').setFileData('/path/to/file.txt')curl.setOpt('URL', 'https://httpbin.org/post')curl.setOpt('MIMEPOST', mime)curl.perform()See Also
Modifiers
@public
constructor
constructor(handle: Easy | Curl);Creates a new MIME structure associated with an Easy or Curl handle.
Parameter handle
The Easy or Curl handle this MIME structure will be associated with
Example 1
const curl = new Curl()const mime = new CurlMime(curl)Example 2
const easy = new Easy()const mime = new CurlMime(easy)
method addPart
addPart: () => CurlMimePart;Adds a new empty part to this MIME structure.
Returns
A new CurlMimePart instance that can be configured
Example 1
const mime = new CurlMime(curl)mime.addPart().setName('field_name').setData('field_value')See Also
class CurlMimePart
class CurlMimePart {}CurlMimePartclass that represents a single part in a MIME structure. > [C++ source code](https://github.com/JCMais/node-libcurl/blob/master/src/CurlMime.cc)This class is used to configure individual parts of a multipart form data upload. Instances are created by calling CurlMime.addPart.
Remarks
Each part can have: - A field name (via setName) - Data content (via setData, setFileData, or setDataCallback) - A content mime type (via setType) - A file name (via setFileName) - Content encoding (via setEncoder) - Custom headers (via setHeaders) - Nested subparts (via setSubparts)
All setter methods return
thisfor method chaining and throw CurlEasyError on error.Example 1
Basic text field with method chaining:
mime.addPart().setName('username').setData('john_doe')Example 2
File upload with method chaining:
mime.addPart().setName('avatar').setFileData('/path/to/image.png').setType('image/png').setFileName('avatar.png')Modifiers
@public
method setData
setData: (data: string | Buffer | null) => this;Sets the data content for this MIME part from a string or Buffer.
Parameter data
The data as a string or Buffer, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
The data is copied internally, so it's safe to reuse or modify the buffer after calling this method.
Example 1
part.setName('file').setData('Hello World').setType('text/plain')// orpart.setName('file').setData(Buffer.from([0x48, 0x65, 0x6c, 0x6c, 0x6f])).setType('text/plain')See Also
method setDataCallback
setDataCallback: (size: number, callbacks: MimeDataCallbacks) => this;Sets a callback-based mechanism for supplying part content dynamically.
Parameter size
Expected total size in bytes, -1 works for unknown sizes
Parameter callbacks
Object containing read, seek (optional), and free (optional) callbacks
Returns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
Use this for streaming or dynamically generated content. The read callback will be called multiple times to supply data chunks. Return
nullfrom the read callback to signal EOF.Example 1
let currentOffset = 0const data = Buffer.from('Large data to stream...')part.setName('stream').setDataCallback(data.length, {read: (size) => {if (currentOffset >= data.length) return null // EOFconst chunk = data.slice(currentOffset, currentOffset + size)currentOffset += chunk.lengthreturn chunk},seek: (offset, origin) => {if (origin === 0) { // SEEK_SETcurrentOffset = offsetreturn true}return false}})See Also
method setDataStream
setDataStream: (stream: Readable, unpause: () => void, size?: number) => this;Sets the data content for this MIME part from a Node.js Readable stream.
Parameter stream
Node.js Readable stream to read data from
Parameter unpause
Callback function to unpause the transfer when data becomes available
Parameter size
Optional expected total size in bytes (for Content-Length header)
Returns
thisfor method chainingThrows
{Error} Throws if stream emits an error
Remarks
This method provides a wrapper around setDataCallback for working with Node.js streams. The stream is kept in paused mode and data is read synchronously when curl requests it. When no data is available, the transfer is paused using
CurlReadFunc.Pause, and theunpausecallback is invoked when data becomes available to resume the transfer.The
unpausefunction should unpause the curl handle's receive operation, typically by callinghandle.pause(handle.pauseFlags & ~CurlPause.Recv).For very large files, consider using setFileData instead, as it streams directly from disk without going through Node.js streams.
Example 1
Stream from file with unpause:
import { createReadStream } from 'fs'import { CurlPause } from 'node-libcurl'const stream = createReadStream('/path/to/file.txt')const curl = new Curl()const mime = new CurlMime(curl)mime.addPart().setName('document').setDataStream(stream, () => {curl.pause(curl.handle.pauseFlags & ~CurlPause.Recv)}).setType('text/plain')Example 2
Stream with known size:
import { createReadStream, statSync } from 'fs'import { CurlPause } from 'node-libcurl'const filepath = '/path/to/file.txt'const size = statSync(filepath).sizeconst stream = createReadStream(filepath)const curl = new Curl()const mime = new CurlMime(curl)mime.addPart().setName('document').setDataStream(stream,() => curl.pause(curl.handle.pauseFlags & ~CurlPause.Recv),size)
method setEncoder
setEncoder: ( encoding: 'binary' | '8bit' | '7bit' | 'base64' | 'quoted-printable' | null) => this;Sets the content transfer encoding for this part.
Parameter encoding
Encoding scheme: 'binary', '8bit', '7bit', 'base64', 'quoted-printable', or
nullto disableReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
- 'binary': No encoding, header added - '8bit': No encoding, header added - '7bit': Validates 7-bit compliance - 'base64': Base64 encoding - 'quoted-printable': Quoted-printable encoding
Do NOT use encoding with multipart content (subparts).
Example 1
part.setName('data').setData(binaryData).setEncoder('base64')See Also
method setFileData
setFileData: (filePath: string | null) => this;Sets the data content for this MIME part by reading from a file.
Parameter filePath
Path to the file, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
The file is streamed during transfer for memory efficiency. The file must be readable when the transfer starts.
Example 1
part.setName('document').setFileData('/path/to/document.pdf').setType('application/pdf')See Also
method setFileName
setFileName: (fileName: string | null) => this;Sets the remote filename for this part.
Parameter filename
The filename to send, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
This appears in the Content-Disposition header and can be different from the actual local filename when using setFileData.
Example 1
part.setName('avatar').setFileData('/tmp/temp123.jpg').setFileName('profile-photo.jpg')See Also
method setHeaders
setHeaders: (headers: string[] | null) => this;Sets custom headers for this MIME part.
Parameter headers
Array of header strings, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
Each header should be in the format "Header-Name: value".
Example 1
part.setName('doc').setData('content').setHeaders(['Content-ID: <document123>','X-Custom-Header: custom-value'])See Also
method setName
setName: (name: string | null) => this;Sets the field name for this MIME part.
Parameter name
The field name, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Example 1
part.setName('username').setData('john_doe')See Also
method setSubparts
setSubparts: (mime: CurlMime | null) => this;Sets a MIME structure as nested subparts of this part.
Parameter mime
A CurlMime instance to use as subparts, or
nullto resetReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Remarks
Ownership of the MIME structure transfers to this part. The subparts MIME object should not be used after this call.
Example 1
const subMime = new CurlMime(curl)subMime.addPart().setName('nested_field').setData('nested content')mime.addPart().setName('multipart_section').setSubparts(subMime)See Also
method setType
setType: (mimeType: string | null) => this;Sets the content type (MIME type) for this part.
Parameter mimeType
The MIME type string, or
nullto use defaultReturns
thisfor method chainingThrows
{CurlEasyError} Throws on error
Example 1
part.setName('avatar').setFileData('image.png').setType('image/png')See Also
class CurlMultiError
class CurlMultiError extends CurlError {}constructor
constructor(message: string, code: CurlMultiCode, errorOptions?: ErrorOptions);property code
readonly code: CurlMultiCode;property name
static readonly name: string;class CurlSharedError
class CurlSharedError extends CurlError {}constructor
constructor(message: string, code: CurlShareCode, errorOptions?: ErrorOptions);property code
readonly code: CurlShareCode;property name
static readonly name: string;class Easy
class Easy {}Easyclass that acts as an wrapper around the libcurl connection handle. > [C++ source code](https://github.com/JCMais/node-libcurl/blob/master/src/Easy.cc)It can be used by itself, in a synchronous way:
import { Curl, CurlCode, Easy } from 'node-libcurl'import { StringDecoder } from 'string_decoder'const decoder = new StringDecoder('utf8')const easyHandle = new Easy()easyHandle.setOpt(Curl.option.URL, 'https://www.google.com')// This is used to receive the headers// See https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.htmleasyHandle.setOpt(Curl.option.HEADERFUNCTION, function (buf, size, nmemb) {console.log('Received some headers:', decoder.write(buf))return size * nmemb})// This is used to receive the response data// See https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.htmleasyHandle.setOpt(Curl.option.WRITEFUNCTION, function (buf, size, nmemb) {console.log('Received some body:', decoder.write(buf))return size * nmemb})// this will trigger the requestconst ret = easyHandle.perform()// The Easy handle will block the JS main thread:console.log('I will only show after the request has finished')// In case there is something wrong, you can use Easy.strError to get a human readable string about the errorconsole.log(ret, ret === CurlCode.CURLE_OK, Easy.strError(ret))// Remember to always close the handle after you have finished using it for goodeasyHandle.close()or with the Multi class, allowing asynchronous usage.
Modifiers
@public
property id
readonly id: number;This is the unique ID of the Easy handle.
This ID is also unique across threads.
property isInsideMultiHandle
readonly isInsideMultiHandle: boolean;This will be
trueif the handle was added to a `Multi` handle.
property isMonitoringSockets
readonly isMonitoringSockets: boolean;This will be
trueif `monitorSocketEvents` was called.
property isOpen
readonly isOpen: boolean;This will be
trueif `close` was not called.
property isPausedRecv
readonly isPausedRecv: boolean;property isPausedSend
readonly isPausedSend: boolean;property pauseFlags
readonly pauseFlags: CurlPause;property private
private: any;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.
method close
close: () => void;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()](http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html)
method debugLog
debugLog: (message: string) => void;method dupHandle
dupHandle: () => Easy;Duplicate this handle with all their options and callbacks.
Official libcurl documentation: [
curl_easy_duphandle()](http://curl.haxx.se/libcurl/c/curl_easy_duphandle.html)
method getInfo
getInfo: { (info: 'CERTINFO'): GetInfoReturn<string[]>; ( info: | 'HTTP_VERSION' | 'CAINFO' | 'CAPATH' | 'COOKIELIST' | 'FILETIME' | 'REFERER' | 'RTSP_CLIENT_CSEQ' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'ACTIVESOCKET' | 'APPCONNECT_TIME' | 'APPCONNECT_TIME_T' | 'CONDITION_UNMET' | 'CONN_ID' | 'CONNECT_TIME' | 'CONNECT_TIME_T' | 'CONTENT_LENGTH_DOWNLOAD' | 'CONTENT_LENGTH_DOWNLOAD_T' | 'CONTENT_LENGTH_UPLOAD' | 'CONTENT_LENGTH_UPLOAD_T' | 'CONTENT_TYPE' | 'EARLYDATA_SENT_T' | 'EFFECTIVE_METHOD' | 'EFFECTIVE_URL' | 'FILETIME_T' | 'FTP_ENTRY_PATH' | 'HEADER_SIZE' | 'HTTP_CONNECTCODE' | 'HTTPAUTH_AVAIL' | 'HTTPAUTH_USED' | 'LASTSOCKET' | 'LOCAL_IP' | 'LOCAL_PORT' | 'NAMELOOKUP_TIME' | 'NAMELOOKUP_TIME_T' | 'NUM_CONNECTS' | 'OS_ERRNO' | 'POSTTRANSFER_TIME_T' | 'PRETRANSFER_TIME' | 'PRETRANSFER_TIME_T' | 'PRIMARY_IP' | 'PRIMARY_PORT' | 'PRIVATE' | 'PROTOCOL' | 'PROXY_ERROR' | 'PROXY_SSL_VERIFYRESULT' | 'PROXYAUTH_AVAIL' | 'PROXYAUTH_USED' | 'QUEUE_TIME_T' | 'REDIRECT_COUNT' | 'REDIRECT_TIME' | 'REDIRECT_TIME_T' | 'REDIRECT_URL' | 'REQUEST_SIZE' | 'RESPONSE_CODE' | 'RETRY_AFTER' | 'RTSP_CSEQ_RECV' | 'SCHEME' | 'SIZE_DOWNLOAD' | 'SIZE_DOWNLOAD_T' | 'SIZE_UPLOAD' | 'SIZE_UPLOAD_T' | 'SPEED_DOWNLOAD' | 'SPEED_DOWNLOAD_T' | 'SPEED_UPLOAD' | 'SPEED_UPLOAD_T' | 'SSL_ENGINES' | 'SSL_VERIFYRESULT' | 'STARTTRANSFER_TIME' | 'STARTTRANSFER_TIME_T' | 'TLS_SESSION' | 'TLS_SSL_PTR' | 'TOTAL_TIME' | 'TOTAL_TIME_T' | 'USED_PROXY' | 'XFER_ID' ): GetInfoReturn<string | number>;};Official libcurl documentation: [
curl_easy_getinfo()](http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html)Parameter info
Info to retrieve. Use `Curl.info` for predefined constants.
Returns information about the finished connection.
Official libcurl documentation: [
curl_easy_getinfo()](http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html)Parameter info
Info to retrieve. Use `Curl.info` for predefined constants.
method monitorSocketEvents
monitorSocketEvents: () => this;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.
method onSocketEvent
onSocketEvent: (cb: (error: Error | null, events: SocketState) => void) => this;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](https://github.com/JCMais/node-libcurl/blob/master/examples/15-send-recv-methods.js)
Pass
nullto remove the current callback set.
method pause
pause: (bitmask: CurlPause) => CurlCode;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()](http://curl.haxx.se/libcurl/c/curl_easy_pause.html)
method perform
perform: () => CurlCode;Performs the entire request in a blocking manner and returns when done.
Official libcurl documentation: [
curl_easy_perform()](http://curl.haxx.se/libcurl/c/curl_easy_perform.html)
method recv
recv: (storage: Buffer) => { code: CurlCode; bytesReceived: number };Receives data over the established connection, data will be written to the passed buffer.
See also `onSocketEvent`.
Official libcurl documentation: [
curl_easy_recv()](http://curl.haxx.se/libcurl/c/curl_easy_recv.html)
method reset
reset: () => CurlCode;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()](http://curl.haxx.se/libcurl/c/curl_easy_reset.html)
method send
send: (data: Buffer) => { code: CurlCode; bytesSent: number };Sends arbitrary data over the established connection.
See also `onSocketEvent`.
Official libcurl documentation: [
curl_easy_send()](http://curl.haxx.se/libcurl/c/curl_easy_send.html)
method setMimePost
setMimePost: (parts: CurlyMimePart[]) => this;Build and set a MIME structure from a declarative configuration.
This is a high-level method that accepts an array of MIME part specifications and internally builds a CurlMime structure, then sets it using the
MIMEPOSToption. This is the recommended way to create multipart form data.For stream-based parts, the unpause callback is automatically generated, so you don't need to provide it.
Available since libcurl 7.56.0.
Parameter parts
Array of MIME part specifications
Returns
This Easy instance for method chaining
method setOpt
setOpt: { ( option: DataCallbackOptions, value: (this: Easy, data: Buffer, size: number, nmemb: number) => number ): CurlCode; ( option: ProgressCallbackOptions, value: ( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number ): CurlCode; (option: StringListOptions, value: string[]): CurlCode; (option: BlobOptions, value: any): CurlCode; ( option: 'CHUNK_BGN_FUNCTION', value: (this: Easy, fileInfo: FileInfo, remains: number) => CurlChunk ): CurlCode; (option: 'CHUNK_END_FUNCTION', value: (this: Easy) => CurlChunk): CurlCode; ( option: 'DEBUGFUNCTION', value: (this: Easy, type: CurlInfoDebug, data: Buffer) => 0 ): CurlCode; ( option: 'FNMATCH_FUNCTION', value: (this: Easy, pattern: string, value: string) => CurlFnMatchFunc ): CurlCode; ( option: 'HSTSREADFUNCTION', value: ( this: Easy, options: { maxHostLengthBytes: number } ) => CurlHstsCacheEntry | CurlHstsCacheEntry[] ): CurlCode; ( option: 'HSTSWRITEFUNCTION', value: ( this: Easy, cacheEntry: CurlHstsCacheEntry, cacheCount: CurlHstsCacheCount ) => any ): CurlCode; ( option: 'INTERLEAVEFUNCTION', value: (this: Easy, data: Buffer, size: number, nmemb: number) => number ): CurlCode; ( option: 'PREREQFUNCTION', value: ( this: Easy, connPrimaryIp: string, connLocalIp: string, connPrimaryPort: number, conLocalPort: number ) => CurlPreReqFunc ): CurlCode; ( option: 'SEEKFUNCTION', value: (this: Easy, offset: number, origin: number) => number ): CurlCode; ( option: 'SSH_HOSTKEYFUNCTION', value: ( this: Easy, keytype: CurlSshKeyType, key: Buffer ) => CurlSshKeyMatch ): CurlCode; ( option: 'TRAILERFUNCTION', value: (this: Easy) => false | string[] ): CurlCode; (option: 'SHARE', value: Share): CurlCode; (option: 'HTTPPOST', value: HttpPostField[]): CurlCode; (option: 'STREAM_DEPENDS', value: Easy): CurlCode; (option: 'STREAM_DEPENDS_E', value: Easy): CurlCode; (option: 'FTP_SSL_CCC', value: CurlFtpSsl): CurlCode; (option: 'FTP_FILEMETHOD', value: CurlFtpMethod): CurlCode; (option: 'GSSAPI_DELEGATION', value: CurlGssApi): CurlCode; (option: 'HEADEROPT', value: CurlHeader): CurlCode; (option: 'HTTP_VERSION', value: CurlHttpVersion): CurlCode; (option: 'IPRESOLVE', value: CurlIpResolve): CurlCode; (option: 'MIMEPOST', value: CurlMime): CurlCode; (option: 'MIME_OPTIONS', value: CurlMimeOpt): CurlCode; (option: 'NETRC', value: CurlNetrc): CurlCode; (option: 'PROTOCOLS', value: CurlProtocol): CurlCode; (option: 'PROXY_SSL_OPTIONS', value: CurlSslOpt): CurlCode; (option: 'PROXYTYPE', value: CurlProxy): CurlCode; (option: 'REDIR_PROTOCOLS', value: CurlProtocol): CurlCode; (option: 'RTSP_REQUEST', value: CurlRtspRequest): CurlCode; (option: 'SSH_AUTH_TYPES', value: CurlSshAuth): CurlCode; (option: 'SSL_OPTIONS', value: CurlSslOpt): CurlCode; (option: 'SSLVERSION', value: CurlSslVersion): CurlCode; (option: 'TIMECONDITION', value: CurlTimeCond): CurlCode; (option: 'USE_SSL', value: CurlUseSsl): CurlCode; (option: 'WS_OPTIONS', value: CurlWsOptions): CurlCode; (option: 'HSTS_CTRL', value: CurlHsts): CurlCode; ( option: | 'ABSTRACT_UNIX_SOCKET' | 'ACCEPT_ENCODING' | 'ACCEPTTIMEOUT_MS' | 'ADDRESS_SCOPE' | 'ALTSVC' | 'ALTSVC_CTRL' | 'APPEND' | 'AUTOREFERER' | 'AWS_SIGV4' | 'BUFFERSIZE' | 'CA_CACHE_TIMEOUT' | 'CAINFO' | 'CAPATH' | 'CERTINFO' | 'CONNECT_ONLY' | 'CONNECTTIMEOUT' | 'CONNECTTIMEOUT_MS' | 'COOKIE' | 'COOKIEFILE' | 'COOKIEJAR' | 'COOKIELIST' | 'COOKIESESSION' | 'CRLF' | 'CRLFILE' | 'CUSTOMREQUEST' | 'DEFAULT_PROTOCOL' | 'DIRLISTONLY' | 'DISALLOW_USERNAME_IN_URL' | 'DNS_CACHE_TIMEOUT' | 'DNS_INTERFACE' | 'DNS_LOCAL_IP4' | 'DNS_LOCAL_IP6' | 'DNS_SERVERS' | 'DNS_SHUFFLE_ADDRESSES' | 'DNS_USE_GLOBAL_CACHE' | 'DOH_SSL_VERIFYHOST' | 'DOH_SSL_VERIFYPEER' | 'DOH_SSL_VERIFYSTATUS' | 'DOH_URL' | 'ECH' | 'EGDSOCKET' | 'EXPECT_100_TIMEOUT_MS' | 'FAILONERROR' | 'FILETIME' | 'FOLLOWLOCATION' | 'FORBID_REUSE' | 'FRESH_CONNECT' | 'FTP_ACCOUNT' | 'FTP_ALTERNATIVE_TO_USER' | 'FTP_CREATE_MISSING_DIRS' | 'FTP_SKIP_PASV_IP' | 'FTP_USE_EPRT' | 'FTP_USE_EPSV' | 'FTP_USE_PRET' | 'FTPPORT' | 'FTPSSLAUTH' | 'HAPPY_EYEBALLS_TIMEOUT_MS' | 'HAPROXY_CLIENT_IP' | 'HAPROXYPROTOCOL' | 'HEADER' | 'HSTS' | 'HTTP_CONTENT_DECODING' | 'HTTP_TRANSFER_DECODING' | 'HTTP09_ALLOWED' | 'HTTPAUTH' | 'HTTPGET' | 'HTTPPROXYTUNNEL' | 'IGNORE_CONTENT_LENGTH' | 'INFILESIZE' | 'INFILESIZE_LARGE' | 'INTERFACE' | 'ISSUERCERT' | 'KEEP_SENDING_ON_ERROR' | 'KEYPASSWD' | 'KRBLEVEL' | 'LOCALPORT' | 'LOCALPORTRANGE' | 'LOGIN_OPTIONS' | 'LOW_SPEED_LIMIT' | 'LOW_SPEED_TIME' | 'MAIL_AUTH' | 'MAIL_FROM' | 'MAIL_RCPT_ALLOWFAILS' | 'MAX_RECV_SPEED_LARGE' | 'MAX_SEND_SPEED_LARGE' | 'MAXAGE_CONN' | 'MAXCONNECTS' | 'MAXFILESIZE' | 'MAXFILESIZE_LARGE' | 'MAXLIFETIME_CONN' | 'MAXREDIRS' | 'NETRC_FILE' | 'NEW_DIRECTORY_PERMS' | 'NEW_FILE_PERMS' | 'NOBODY' | 'NOPROGRESS' | 'NOPROXY' | 'NOSIGNAL' | 'PASSWORD' | 'PATH_AS_IS' | 'PINNEDPUBLICKEY' | 'PIPEWAIT' | 'PORT' | 'POST' | 'POSTFIELDS' | 'POSTFIELDSIZE' | 'POSTFIELDSIZE_LARGE' | 'POSTREDIR' | 'PRE_PROXY' | 'PROTOCOLS_STR' | 'PROXY' | 'PROXY_CAINFO' | 'PROXY_CAPATH' | 'PROXY_CRLFILE' | 'PROXY_ISSUERCERT' | 'PROXY_ISSUERCERT_BLOB' | 'PROXY_KEYPASSWD' | 'PROXY_PINNEDPUBLICKEY' | 'PROXY_SERVICE_NAME' | 'PROXY_SSL_CIPHER_LIST' | 'PROXY_SSL_VERIFYHOST' | 'PROXY_SSL_VERIFYPEER' | 'PROXY_SSLCERTTYPE' | 'PROXY_SSLKEY' | 'PROXY_SSLKEYTYPE' | 'PROXY_SSLVERSION' | 'PROXY_TLS13_CIPHERS' | 'PROXY_TLSAUTH_PASSWORD' | 'PROXY_TLSAUTH_TYPE' | 'PROXY_TLSAUTH_USERNAME' | 'PROXY_TRANSFER_MODE' | 'PROXYAUTH' | 'PROXYPASSWORD' | 'PROXYPORT' | 'PROXYUSERNAME' | 'PROXYUSERPWD' | 'PUT' | 'QUICK_EXIT' | 'RANDOM_FILE' | 'RANGE' | 'READDATA' | 'REDIR_PROTOCOLS_STR' | 'REFERER' | 'REQUEST_TARGET' | 'RESUME_FROM' | 'RESUME_FROM_LARGE' | 'RTSP_CLIENT_CSEQ' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'RTSP_STREAM_URI' | 'RTSP_TRANSPORT' | 'SASL_AUTHZID' | 'SASL_IR' | 'SERVER_RESPONSE_TIMEOUT' | 'SERVER_RESPONSE_TIMEOUT_MS' | 'SERVICE_NAME' | 'SOCKS5_AUTH' | 'SOCKS5_GSSAPI_NEC' | 'SOCKS5_GSSAPI_SERVICE' | 'SSH_COMPRESSION' | 'SSH_HOST_PUBLIC_KEY_MD5' | 'SSH_HOST_PUBLIC_KEY_SHA256' | 'SSH_KNOWNHOSTS' | 'SSH_PRIVATE_KEYFILE' | 'SSH_PUBLIC_KEYFILE' | 'SSL_CIPHER_LIST' | 'SSL_EC_CURVES' | 'SSL_ENABLE_ALPN' | 'SSL_ENABLE_NPN' | 'SSL_FALSESTART' | 'SSL_SESSIONID_CACHE' | 'SSL_SIGNATURE_ALGORITHMS' | 'SSL_VERIFYHOST' | 'SSL_VERIFYPEER' | 'SSL_VERIFYSTATUS' | 'SSLCERT' | 'SSLCERTTYPE' | 'SSLENGINE' | 'SSLENGINE_DEFAULT' | 'SSLKEY' | 'SSLKEYTYPE' | 'STREAM_WEIGHT' | 'SUPPRESS_CONNECT_HEADERS' | 'TCP_FASTOPEN' | 'TCP_KEEPALIVE' | 'TCP_KEEPCNT' | 'TCP_KEEPIDLE' | 'TCP_KEEPINTVL' | 'TCP_NODELAY' | 'TFTP_BLKSIZE' | 'TFTP_NO_OPTIONS' | 'TIMEOUT' | 'TIMEOUT_MS' | 'TIMEVALUE' | 'TIMEVALUE_LARGE' | 'TLS13_CIPHERS' | 'TLSAUTH_PASSWORD' | 'TLSAUTH_TYPE' | 'TLSAUTH_USERNAME' | 'TRANSFER_ENCODING' | 'TRANSFERTEXT' | 'UNIX_SOCKET_PATH' | 'UNRESTRICTED_AUTH' | 'UPKEEP_INTERVAL_MS' | 'UPLOAD' | 'UPLOAD_BUFFERSIZE' | 'UPLOAD_FLAGS' | 'URL' | 'USERAGENT' | 'USERNAME' | 'USERPWD' | 'VERBOSE' | 'WILDCARDMATCH' | 'XOAUTH2_BEARER', value: string | number | boolean ): CurlCode;};Use `Curl.option` for predefined constants.
Official libcurl documentation: [
curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)Use `Curl.option` for predefined constants.
You can either return a single
CurlHstsReadCallbackResultobject or an array ofCurlHstsReadCallbackResultobjects. 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 untilnullis returned.Official libcurl documentation: [
curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)
method strError
static strError: (errorCode: CurlCode) => string;Returns a description for the given error code.
Official libcurl documentation: [
curl_easy_strerror()](http://curl.haxx.se/libcurl/c/curl_easy_strerror.html)
method unmonitorSocketEvents
unmonitorSocketEvents: () => this;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.
method upkeep
upkeep: () => CurlCode;Perform any connection upkeep checks.
Official libcurl documentation: [curl_easy_upkeep()](http://curl.haxx.se/libcurl/c/curl_easy_upkeep.html)
method wsMeta
wsMeta: () => CurlWsFrame | null;Get WebSocket frame metadata when called from within a WRITEFUNCTION callback.
This function provides additional information about the current WebSocket frame being received. It only works from within the callback, and only when receiving WebSocket data.
Requires libcurl >= 7.86.0
Official libcurl documentation: [
curl_ws_meta()](https://curl.se/libcurl/c/curl_ws_meta.html)Returns
Frame metadata or null if not available
method wsRecv
wsRecv: (buffer: Buffer) => { code: CurlCode; bytesReceived: number; meta: CurlWsFrame | null;};Receive WebSocket data when using CONNECT_ONLY mode.
Retrieves as much as possible of a received WebSocket frame into the buffer, but not more than buflen bytes. Check
meta.bytesleftto determine whether the complete frame has been received. If more payload is pending, call this function again with an updated buffer to resume receiving.Requires libcurl >= 7.86.0
Official libcurl documentation: [
curl_ws_recv()](https://curl.se/libcurl/c/curl_ws_recv.html)
method wsSend
wsSend: ( buffer: Buffer, flags: number, fragsize?: number) => { code: CurlCode; bytesSent: number };Send WebSocket data when using CONNECT_ONLY mode.
Sends a specific message chunk over an established WebSocket connection.
flagsmust contain at least one flag indicating the type of the message (Text, Binary, Close, Ping, Pong). For fragmented messages, set the Cont bit in all frames except the final one.Requires libcurl >= 7.86.0
Official libcurl documentation: [
curl_ws_send()](https://curl.se/libcurl/c/curl_ws_send.html)Parameter buffer
The data to send
Parameter flags
Frame type and flags from `CurlWs`
Parameter fragsize
Optional fragment size, only used with CURLWS_OFFSET flag
method wsStartFrame
wsStartFrame: (flags: number, frameLength: number) => CurlCode;Start a new WebSocket frame.
This should only be called from within a READFUNCTION callback. Calling it from anywhere else is undefined behavior.
Official libcurl documentation: [
curl_ws_start_frame()](https://curl.se/libcurl/c/curl_ws_start_frame.html)
class Multi
class Multi {}Multiclass that acts as an wrapper around the native libcurl multi handle. > [C++ source code](https://github.com/JCMais/node-libcurl/blob/master/src/Multi.cc)Using this class instead of just the Easy allows one to run requests asynchronously.
For usage see [examples/04-multi.js](https://github.com/JCMais/node-libcurl/blob/master/examples/04-multi.js)
The Curl class uses one of this internally to provide asynchronous usage of the library.
Modifiers
@public
constructor
constructor(options?: MultiOptions);Creates a new Multi instance.
Parameter options
Optional configuration for the Multi instance
Example 1
// Use default settings (notifications enabled if libcurl >= 8.17.0)const multi = new Multi()// Explicitly enable notifications (recommended for libcurl >= 8.17.0)const multiWithNotifications = new Multi({ shouldUseNotificationsApi: true })// Use traditional polling (compatible with all libcurl versions)const multiWithPolling = new Multi({ shouldUseNotificationsApi: false })
method addHandle
addHandle: (handle: Easy) => CurlMultiCode;Adds an `Easy` handle to be managed by this instance.
The request will start right after calling this method.
Official libcurl documentation: [
curl_multi_add_handle()](http://curl.haxx.se/libcurl/c/curl_multi_add_handle.html)Deprecated
This will be eventually removed in favor of just using `perform` to add handles to the multi handle.
method close
close: () => void;Closes this multi handle.
After the handle has been closed it must not be used again.
This is basically the same than [
curl_multi_cleanup()](http://curl.haxx.se/libcurl/c/curl_multi_cleanup.html)
method getCount
getCount: () => number;Returns the number of 'Easy' handles that are currently inside this instance
method onMessage
onMessage: ( cb: (error: Error, easyHandle: Easy, errorCode: CurlCode) => void) => this;Allow to provide a callback that will be called when there are new information about the handles inside this instance.
This is basically an abstraction over [
curl_multi_info_read()](http://curl.haxx.se/libcurl/c/curl_multi_info_read.html)Pass
nullto remove the current callback set.Deprecated
This will be eventually removed in favor of just using `perform` to add handles to the multi handle, instead of using `addHandle`.
method perform
perform: (handle: Easy) => Promise<Easy>;Adds an `Easy` handle to this Multi instance and returns a promise that resolves when the request completes successfully, or rejects with a CurlError if it fails.
This is the modern, promise-based alternative to using `addHandle` with `onMessage`.
The returned promise will: - Resolve with the Easy handle when the request completes successfully - Reject with a CurlError (containing a
codeproperty with the CurlCode value) on failureParameter handle
The Easy handle to perform the request with
Returns
A promise that resolves with the Easy handle or rejects with a CurlError
Example 1
const multi = new Multi()const easy = new Easy()easy.setOpt('URL', 'https://example.com')try {await multi.perform(easy)console.log('Request completed successfully')} catch (error) {console.error('Request failed with code:', error.code)}This does what [
curl_multi_add_handle()](http://curl.haxx.se/libcurl/c/curl_multi_add_handle.html) does.
method removeHandle
removeHandle: (handle: Easy) => CurlMultiCode;method setOpt
setOpt: { (option: 'PIPELINING', value: CurlPipe): CurlMultiCode; ( option: 'PUSHFUNCTION', value: ( parent: Easy, duplicatedHandle: Easy, pushFrameHeaders: Http2PushFrameHeaders ) => CurlPush ): CurlMultiCode; (option: MultiOptionName, value: number): CurlMultiCode;};Sets the [
PIPELINING](https://curl.haxx.se/libcurl/c/CURLMOPT_PIPELINING.html) option.Official libcurl documentation: [
curl_multi_setopt()](http://curl.haxx.se/libcurl/c/curl_multi_setopt.html)Sets the [
PUSHFUNCTION](https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html) option.Remarks
You **must** not use the `Http2PushFrameHeaders` object outside of this callback, doing so will try to use memory that libcurl has already freed and, in the best case scenario, will cause a segmentation fault.
In case you have denied the push, you **must** also not use the
duplicatedHandleoutside of this callback, as libcurl would already have closed it and you would try to access memory that has been freed.Errors thrown inside this callback will have the same effect than returning
CurlPush.Deny.Per a libcurl limitation, there is no direct way to cancel the connection from inside this callback, a possible workaround is to return an error from another callback, like the progress one.
Official libcurl documentation: [
curl_multi_setopt()](http://curl.haxx.se/libcurl/c/curl_multi_setopt.html)Sets options on this instance.
Use `Curl.option` for predefined constants.
Official libcurl documentation: [
curl_multi_setopt()](http://curl.haxx.se/libcurl/c/curl_multi_setopt.html)
method strError
strError: (errorCode: CurlMultiCode) => string;Returns a description for the given error code.
Official libcurl documentation: [
curl_multi_strerror()](http://curl.haxx.se/libcurl/c/curl_multi_strerror.html)
class Share
class Share {}Shareclass that acts as an wrapper around the native libcurl share handle. > [C++ source code](https://github.com/JCMais/node-libcurl/blob/master/src/Share.cc)Using this class you should be able to share data between two Easy handles, like cookies for instance.
For usage see [examples/05-share.js](https://github.com/JCMais/node-libcurl/blob/master/examples/05-share.js)
Modifiers
@public
method close
close: () => void;Closes this handle.
After the handle has been closed it must not be used again.
This is basically the same than [curl_share_cleanup()](http://curl.haxx.se/libcurl/c/curl_share_cleanup.html)
method setOpt
setOpt: (option: CurlShareOption, value: CurlShareLock) => CurlShareCode;You can use `CurlShareOption` and `CurlShareLock` for predefined constants.
Official libcurl documentation: [
curl_share_setopt()](http://curl.haxx.se/libcurl/c/curl_share_setopt.html)
method strError
strError: (errorCode: CurlShareCode) => string;Returns a description for the given error code.
Official libcurl documentation: [
curl_share_strerror()](http://curl.haxx.se/libcurl/c/curl_share_strerror.html)
Interfaces
interface Curl
interface Curl {}method getInfo
getInfo: { (info: 'CERTINFO'): GetInfoReturn<string[]>['data']; ( info: | 'HTTP_VERSION' | 'CAINFO' | 'CAPATH' | 'COOKIELIST' | 'FILETIME' | 'REFERER' | 'RTSP_CLIENT_CSEQ' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'ACTIVESOCKET' | 'APPCONNECT_TIME' | 'APPCONNECT_TIME_T' | 'CONDITION_UNMET' | 'CONN_ID' | 'CONNECT_TIME' | 'CONNECT_TIME_T' | 'CONTENT_LENGTH_DOWNLOAD' | 'CONTENT_LENGTH_DOWNLOAD_T' | 'CONTENT_LENGTH_UPLOAD' | 'CONTENT_LENGTH_UPLOAD_T' | 'CONTENT_TYPE' | 'EARLYDATA_SENT_T' | 'EFFECTIVE_METHOD' | 'EFFECTIVE_URL' | 'FILETIME_T' | 'FTP_ENTRY_PATH' | 'HEADER_SIZE' | 'HTTP_CONNECTCODE' | 'HTTPAUTH_AVAIL' | 'HTTPAUTH_USED' | 'LASTSOCKET' | 'LOCAL_IP' | 'LOCAL_PORT' | 'NAMELOOKUP_TIME' | 'NAMELOOKUP_TIME_T' | 'NUM_CONNECTS' | 'OS_ERRNO' | 'POSTTRANSFER_TIME_T' | 'PRETRANSFER_TIME' | 'PRETRANSFER_TIME_T' | 'PRIMARY_IP' | 'PRIMARY_PORT' | 'PRIVATE' | 'PROTOCOL' | 'PROXY_ERROR' | 'PROXY_SSL_VERIFYRESULT' | 'PROXYAUTH_AVAIL' | 'PROXYAUTH_USED' | 'QUEUE_TIME_T' | 'REDIRECT_COUNT' | 'REDIRECT_TIME' | 'REDIRECT_TIME_T' | 'REDIRECT_URL' | 'REQUEST_SIZE' | 'RESPONSE_CODE' | 'RETRY_AFTER' | 'RTSP_CSEQ_RECV' | 'SCHEME' | 'SIZE_DOWNLOAD' | 'SIZE_DOWNLOAD_T' | 'SIZE_UPLOAD' | 'SIZE_UPLOAD_T' | 'SPEED_DOWNLOAD' | 'SPEED_DOWNLOAD_T' | 'SPEED_UPLOAD' | 'SPEED_UPLOAD_T' | 'SSL_ENGINES' | 'SSL_VERIFYRESULT' | 'STARTTRANSFER_TIME' | 'STARTTRANSFER_TIME_T' | 'TLS_SESSION' | 'TLS_SSL_PTR' | 'TOTAL_TIME' | 'TOTAL_TIME_T' | 'USED_PROXY' | 'XFER_ID' ): string | number;};Returns information about the finished connection.
Official libcurl documentation: [
curl_easy_getinfo()](http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html)Parameter info
Info to retrieve. Use `Curl.info` for predefined constants.
method on
on: { ( event: 'data', listener: (this: Curl, chunk: Buffer, curlInstance: Curl) => void ): this; ( event: 'header', listener: (this: Curl, chunk: Buffer, curlInstance: Curl) => void ): this; ( event: 'error', listener: ( this: Curl, error: Error, errorCode: CurlCode, curlInstance: Curl ) => void ): this; ( event: 'stream', listener: ( this: Curl, stream: Readable, status: number, headers: any, curlInstance: Curl ) => void ): this; ( event: 'end', listener: ( this: Curl, status: number, data: any, headers: any, curlInstance: Curl ) => void ): this; (event: string, listener: Function): this;};This is emitted if the StreamResponse feature was enabled.
The
dataparamater passed to the listener callback will be one of the following: - EmptyBufferif the feature `NoDataStorage` flag was enabled - Non-EmptyBufferif the feature `NoDataParsing` flag was enabled - Otherwise, it will be a string, with the result of decoding the received data as a UTF8 string. If it's a JSON string for example, you still need to call JSON.parse on it. This library does no extra parsing whatsoever.The
headersparameter passed to the listener callback will be one of the following: - EmptyBufferif the feature `NoHeaderStorage` flag was enabled - Non-EmptyBufferif the feature `NoHeaderParsing` flag was enabled - Otherwise, an array of parsed headers for each request libcurl made (if there were 2 redirects before the last request, the array will have 3 elements, one for each request)
method setOpt
setOpt: { ( option: DataCallbackOptions, value: (this: Easy, data: Buffer, size: number, nmemb: number) => number ): this; ( option: ProgressCallbackOptions, value: ( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number ): this; (option: StringListOptions, value: string[]): this; (option: BlobOptions, value: any): this; ( option: 'CHUNK_BGN_FUNCTION', value: (this: Easy, fileInfo: FileInfo, remains: number) => CurlChunk ): this; (option: 'CHUNK_END_FUNCTION', value: (this: Easy) => CurlChunk): this; ( option: 'DEBUGFUNCTION', value: (this: Easy, type: CurlInfoDebug, data: Buffer) => 0 ): this; ( option: 'FNMATCH_FUNCTION', value: (this: Easy, pattern: string, value: string) => CurlFnMatchFunc ): this; ( option: 'HSTSREADFUNCTION', value: ( this: Easy, options: { maxHostLengthBytes: number } ) => CurlHstsCacheEntry | CurlHstsCacheEntry[] ): this; ( option: 'HSTSWRITEFUNCTION', value: ( this: Easy, cacheEntry: CurlHstsCacheEntry, cacheCount: CurlHstsCacheCount ) => any ): this; ( option: 'INTERLEAVEFUNCTION', value: (this: Easy, data: Buffer, size: number, nmemb: number) => number ): this; ( option: 'PREREQFUNCTION', value: ( this: Easy, connPrimaryIp: string, connLocalIp: string, connPrimaryPort: number, conLocalPort: number ) => CurlPreReqFunc ): this; ( option: 'SEEKFUNCTION', value: (this: Easy, offset: number, origin: number) => number ): this; ( option: 'SSH_HOSTKEYFUNCTION', value: ( this: Easy, keytype: CurlSshKeyType, key: Buffer ) => CurlSshKeyMatch ): this; (option: 'TRAILERFUNCTION', value: (this: Easy) => false | string[]): this; (option: 'SHARE', value: Share): this; (option: 'HTTPPOST', value: HttpPostField[]): this; (option: 'STREAM_DEPENDS', value: Easy): this; (option: 'STREAM_DEPENDS_E', value: Easy): this; (option: 'FTP_SSL_CCC', value: CurlFtpSsl): this; (option: 'FTP_FILEMETHOD', value: CurlFtpMethod): this; (option: 'GSSAPI_DELEGATION', value: CurlGssApi): this; (option: 'HEADEROPT', value: CurlHeader): this; (option: 'HTTP_VERSION', value: CurlHttpVersion): this; (option: 'IPRESOLVE', value: CurlIpResolve): this; (option: 'MIMEPOST', value: CurlMime): this; (option: 'MIME_OPTIONS', value: CurlMimeOpt): this; (option: 'NETRC', value: CurlNetrc): this; (option: 'PROTOCOLS', value: CurlProtocol): this; (option: 'PROXY_SSL_OPTIONS', value: CurlSslOpt): this; (option: 'PROXYTYPE', value: CurlProxy): this; (option: 'REDIR_PROTOCOLS', value: CurlProtocol): this; (option: 'RTSP_REQUEST', value: CurlRtspRequest): this; (option: 'SSH_AUTH_TYPES', value: CurlSshAuth): this; (option: 'SSL_OPTIONS', value: CurlSslOpt): this; (option: 'SSLVERSION', value: CurlSslVersion): this; (option: 'TIMECONDITION', value: CurlTimeCond): this; (option: 'USE_SSL', value: CurlUseSsl): this; (option: 'WS_OPTIONS', value: CurlWsOptions): this; (option: 'HSTS_CTRL', value: CurlHsts): this; ( option: | 'ABSTRACT_UNIX_SOCKET' | 'ACCEPT_ENCODING' | 'ACCEPTTIMEOUT_MS' | 'ADDRESS_SCOPE' | 'ALTSVC' | 'ALTSVC_CTRL' | 'APPEND' | 'AUTOREFERER' | 'AWS_SIGV4' | 'BUFFERSIZE' | 'CA_CACHE_TIMEOUT' | 'CAINFO' | 'CAPATH' | 'CERTINFO' | 'CONNECT_ONLY' | 'CONNECTTIMEOUT' | 'CONNECTTIMEOUT_MS' | 'COOKIE' | 'COOKIEFILE' | 'COOKIEJAR' | 'COOKIELIST' | 'COOKIESESSION' | 'CRLF' | 'CRLFILE' | 'CUSTOMREQUEST' | 'DEFAULT_PROTOCOL' | 'DIRLISTONLY' | 'DISALLOW_USERNAME_IN_URL' | 'DNS_CACHE_TIMEOUT' | 'DNS_INTERFACE' | 'DNS_LOCAL_IP4' | 'DNS_LOCAL_IP6' | 'DNS_SERVERS' | 'DNS_SHUFFLE_ADDRESSES' | 'DNS_USE_GLOBAL_CACHE' | 'DOH_SSL_VERIFYHOST' | 'DOH_SSL_VERIFYPEER' | 'DOH_SSL_VERIFYSTATUS' | 'DOH_URL' | 'ECH' | 'EGDSOCKET' | 'EXPECT_100_TIMEOUT_MS' | 'FAILONERROR' | 'FILETIME' | 'FOLLOWLOCATION' | 'FORBID_REUSE' | 'FRESH_CONNECT' | 'FTP_ACCOUNT' | 'FTP_ALTERNATIVE_TO_USER' | 'FTP_CREATE_MISSING_DIRS' | 'FTP_SKIP_PASV_IP' | 'FTP_USE_EPRT' | 'FTP_USE_EPSV' | 'FTP_USE_PRET' | 'FTPPORT' | 'FTPSSLAUTH' | 'HAPPY_EYEBALLS_TIMEOUT_MS' | 'HAPROXY_CLIENT_IP' | 'HAPROXYPROTOCOL' | 'HEADER' | 'HSTS' | 'HTTP_CONTENT_DECODING' | 'HTTP_TRANSFER_DECODING' | 'HTTP09_ALLOWED' | 'HTTPAUTH' | 'HTTPGET' | 'HTTPPROXYTUNNEL' | 'IGNORE_CONTENT_LENGTH' | 'INFILESIZE' | 'INFILESIZE_LARGE' | 'INTERFACE' | 'ISSUERCERT' | 'KEEP_SENDING_ON_ERROR' | 'KEYPASSWD' | 'KRBLEVEL' | 'LOCALPORT' | 'LOCALPORTRANGE' | 'LOGIN_OPTIONS' | 'LOW_SPEED_LIMIT' | 'LOW_SPEED_TIME' | 'MAIL_AUTH' | 'MAIL_FROM' | 'MAIL_RCPT_ALLOWFAILS' | 'MAX_RECV_SPEED_LARGE' | 'MAX_SEND_SPEED_LARGE' | 'MAXAGE_CONN' | 'MAXCONNECTS' | 'MAXFILESIZE' | 'MAXFILESIZE_LARGE' | 'MAXLIFETIME_CONN' | 'MAXREDIRS' | 'NETRC_FILE' | 'NEW_DIRECTORY_PERMS' | 'NEW_FILE_PERMS' | 'NOBODY' | 'NOPROGRESS' | 'NOPROXY' | 'NOSIGNAL' | 'PASSWORD' | 'PATH_AS_IS' | 'PINNEDPUBLICKEY' | 'PIPEWAIT' | 'PORT' | 'POST' | 'POSTFIELDS' | 'POSTFIELDSIZE' | 'POSTFIELDSIZE_LARGE' | 'POSTREDIR' | 'PRE_PROXY' | 'PROTOCOLS_STR' | 'PROXY' | 'PROXY_CAINFO' | 'PROXY_CAPATH' | 'PROXY_CRLFILE' | 'PROXY_ISSUERCERT' | 'PROXY_ISSUERCERT_BLOB' | 'PROXY_KEYPASSWD' | 'PROXY_PINNEDPUBLICKEY' | 'PROXY_SERVICE_NAME' | 'PROXY_SSL_CIPHER_LIST' | 'PROXY_SSL_VERIFYHOST' | 'PROXY_SSL_VERIFYPEER' | 'PROXY_SSLCERTTYPE' | 'PROXY_SSLKEY' | 'PROXY_SSLKEYTYPE' | 'PROXY_SSLVERSION' | 'PROXY_TLS13_CIPHERS' | 'PROXY_TLSAUTH_PASSWORD' | 'PROXY_TLSAUTH_TYPE' | 'PROXY_TLSAUTH_USERNAME' | 'PROXY_TRANSFER_MODE' | 'PROXYAUTH' | 'PROXYPASSWORD' | 'PROXYPORT' | 'PROXYUSERNAME' | 'PROXYUSERPWD' | 'PUT' | 'QUICK_EXIT' | 'RANDOM_FILE' | 'RANGE' | 'READDATA' | 'REDIR_PROTOCOLS_STR' | 'REFERER' | 'REQUEST_TARGET' | 'RESUME_FROM' | 'RESUME_FROM_LARGE' | 'RTSP_CLIENT_CSEQ' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'RTSP_STREAM_URI' | 'RTSP_TRANSPORT' | 'SASL_AUTHZID' | 'SASL_IR' | 'SERVER_RESPONSE_TIMEOUT' | 'SERVER_RESPONSE_TIMEOUT_MS' | 'SERVICE_NAME' | 'SOCKS5_AUTH' | 'SOCKS5_GSSAPI_NEC' | 'SOCKS5_GSSAPI_SERVICE' | 'SSH_COMPRESSION' | 'SSH_HOST_PUBLIC_KEY_MD5' | 'SSH_HOST_PUBLIC_KEY_SHA256' | 'SSH_KNOWNHOSTS' | 'SSH_PRIVATE_KEYFILE' | 'SSH_PUBLIC_KEYFILE' | 'SSL_CIPHER_LIST' | 'SSL_EC_CURVES' | 'SSL_ENABLE_ALPN' | 'SSL_ENABLE_NPN' | 'SSL_FALSESTART' | 'SSL_SESSIONID_CACHE' | 'SSL_SIGNATURE_ALGORITHMS' | 'SSL_VERIFYHOST' | 'SSL_VERIFYPEER' | 'SSL_VERIFYSTATUS' | 'SSLCERT' | 'SSLCERTTYPE' | 'SSLENGINE' | 'SSLENGINE_DEFAULT' | 'SSLKEY' | 'SSLKEYTYPE' | 'STREAM_WEIGHT' | 'SUPPRESS_CONNECT_HEADERS' | 'TCP_FASTOPEN' | 'TCP_KEEPALIVE' | 'TCP_KEEPCNT' | 'TCP_KEEPIDLE' | 'TCP_KEEPINTVL' | 'TCP_NODELAY' | 'TFTP_BLKSIZE' | 'TFTP_NO_OPTIONS' | 'TIMEOUT' | 'TIMEOUT_MS' | 'TIMEVALUE' | 'TIMEVALUE_LARGE' | 'TLS13_CIPHERS' | 'TLSAUTH_PASSWORD' | 'TLSAUTH_TYPE' | 'TLSAUTH_USERNAME' | 'TRANSFER_ENCODING' | 'TRANSFERTEXT' | 'UNIX_SOCKET_PATH' | 'UNRESTRICTED_AUTH' | 'UPKEEP_INTERVAL_MS' | 'UPLOAD' | 'UPLOAD_BUFFERSIZE' | 'UPLOAD_FLAGS' | 'URL' | 'USERAGENT' | 'USERNAME' | 'USERPWD' | 'VERBOSE' | 'WILDCARDMATCH' | 'XOAUTH2_BEARER', value: string | number | boolean ): this;};Use `Curl.option` for predefined constants.
Official libcurl documentation: [
curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)Use `Curl.option` for predefined constants.
You can either return a single
CurlHstsReadCallbackResultobject or an array ofCurlHstsReadCallbackResultobjects. 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 untilnullis returned.Official libcurl documentation: [
curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)
interface CurlHstsCacheCount
interface CurlHstsCacheCount {}interface CurlHstsCacheEntry
interface CurlHstsCacheEntry {}property expire
expire?: string | null;The expiration date for the cache entry as a string in the following format:
'YYYYMMDD HH:MM:SS'If not set or if null, it will default to a date far away in the future (currently
99991231 23:59:59).
property host
host: string;The host name.
Example:
google.com
property includeSubDomains
includeSubDomains?: boolean;If subdomains must be included. If not set, defaults to
false.
interface CurlInfo
interface CurlInfo {}Modifiers
@public
property ACTIVESOCKET
readonly ACTIVESOCKET: 'ACTIVESOCKET';The session's active socket.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_ACTIVESOCKET.html](https://curl.haxx.se/libcurl/c/CURLINFO_ACTIVESOCKET.html)
property APPCONNECT_TIME
readonly APPCONNECT_TIME: 'APPCONNECT_TIME';The time it took from the start until the SSL connect/handshake with the remote host was completed as a double in number of seconds.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_APPCONNECT_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_APPCONNECT_TIME.html)
property APPCONNECT_TIME_T
readonly APPCONNECT_TIME_T: 'APPCONNECT_TIME_T';The time it took from the start until the SSL connect/handshake with the remote host was completed in number of microseconds. (Added in 7.60.0)
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_APPCONNECT_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_APPCONNECT_TIME_T.html)
property CAINFO
readonly CAINFO: 'CAINFO';Get the default value for CURLOPT_CAINFO.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLINFO_CAINFO.html)
property CAPATH
readonly CAPATH: 'CAPATH';Get the default value for CURLOPT_CAPATH.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLINFO_CAPATH.html)
property CERTINFO
readonly CERTINFO: 'CERTINFO';Certificate chain.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CERTINFO.html](https://curl.haxx.se/libcurl/c/CURLINFO_CERTINFO.html)
property CONDITION_UNMET
readonly CONDITION_UNMET: 'CONDITION_UNMET';Whether or not a time conditional was met or 304 HTTP response.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONDITION_UNMET.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONDITION_UNMET.html)
property CONN_ID
readonly CONN_ID: 'CONN_ID';The ID of the last connection used by the transfer. (Added in 8.2.0)
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONN_ID.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONN_ID.html)
property CONNECT_TIME
readonly CONNECT_TIME: 'CONNECT_TIME';The time it took from the start until the connect to the remote host (or proxy) was completed. As a double.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONNECT_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONNECT_TIME.html)
property CONNECT_TIME_T
readonly CONNECT_TIME_T: 'CONNECT_TIME_T';The time it took from the start until the connect to the remote host (or proxy) was completed. In microseconds. See CURLINFO_CONNECT_TIME_T.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONNECT_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONNECT_TIME_T.html)
property CONTENT_LENGTH_DOWNLOAD
readonly CONTENT_LENGTH_DOWNLOAD: 'CONTENT_LENGTH_DOWNLOAD';(Deprecated) Content length from the Content-Length header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_DOWNLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_DOWNLOAD.html)
property CONTENT_LENGTH_DOWNLOAD_T
readonly CONTENT_LENGTH_DOWNLOAD_T: 'CONTENT_LENGTH_DOWNLOAD_T';Content length from the Content-Length header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_DOWNLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_DOWNLOAD_T.html)
property CONTENT_LENGTH_UPLOAD
readonly CONTENT_LENGTH_UPLOAD: 'CONTENT_LENGTH_UPLOAD';(Deprecated) Upload size.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_UPLOAD.html)
property CONTENT_LENGTH_UPLOAD_T
readonly CONTENT_LENGTH_UPLOAD_T: 'CONTENT_LENGTH_UPLOAD_T';Upload size.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_UPLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_LENGTH_UPLOAD_T.html)
property CONTENT_TYPE
readonly CONTENT_TYPE: 'CONTENT_TYPE';Content type from the Content-Type: header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_TYPE.html](https://curl.haxx.se/libcurl/c/CURLINFO_CONTENT_TYPE.html)
property COOKIELIST
readonly COOKIELIST: 'COOKIELIST';List of all known cookies.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_COOKIELIST.html](https://curl.haxx.se/libcurl/c/CURLINFO_COOKIELIST.html)
property EARLYDATA_SENT_T
readonly EARLYDATA_SENT_T: 'EARLYDATA_SENT_T';Amount of TLS early data sent (in number of bytes) when CURLSSLOPT_EARLYDATA is enabled.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_EARLYDATA_SENT_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_EARLYDATA_SENT_T.html)
property EFFECTIVE_METHOD
readonly EFFECTIVE_METHOD: 'EFFECTIVE_METHOD';Last used HTTP method.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_EFFECTIVE_METHOD.html](https://curl.haxx.se/libcurl/c/CURLINFO_EFFECTIVE_METHOD.html)
property EFFECTIVE_URL
readonly EFFECTIVE_URL: 'EFFECTIVE_URL';Last used URL.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_EFFECTIVE_URL.html](https://curl.haxx.se/libcurl/c/CURLINFO_EFFECTIVE_URL.html)
property FILETIME
readonly FILETIME: 'FILETIME';Remote time of the retrieved document.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_FILETIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_FILETIME.html)
property FILETIME_T
readonly FILETIME_T: 'FILETIME_T';Remote time of the retrieved document.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_FILETIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_FILETIME_T.html)
property FTP_ENTRY_PATH
readonly FTP_ENTRY_PATH: 'FTP_ENTRY_PATH';The entry path after logging in to an FTP server.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_FTP_ENTRY_PATH.html](https://curl.haxx.se/libcurl/c/CURLINFO_FTP_ENTRY_PATH.html)
property HEADER_SIZE
readonly HEADER_SIZE: 'HEADER_SIZE';Number of bytes of all headers received.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_HEADER_SIZE.html](https://curl.haxx.se/libcurl/c/CURLINFO_HEADER_SIZE.html)
property HTTP_CONNECTCODE
readonly HTTP_CONNECTCODE: 'HTTP_CONNECTCODE';Last proxy CONNECT response code.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_HTTP_CONNECTCODE.html](https://curl.haxx.se/libcurl/c/CURLINFO_HTTP_CONNECTCODE.html)
property HTTP_VERSION
readonly HTTP_VERSION: 'HTTP_VERSION';The http version used in the connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_HTTP_VERSION.html](https://curl.haxx.se/libcurl/c/CURLINFO_HTTP_VERSION.html)
property HTTPAUTH_AVAIL
readonly HTTPAUTH_AVAIL: 'HTTPAUTH_AVAIL';Available HTTP authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_HTTPAUTH_AVAIL.html](https://curl.haxx.se/libcurl/c/CURLINFO_HTTPAUTH_AVAIL.html)
property HTTPAUTH_USED
readonly HTTPAUTH_USED: 'HTTPAUTH_USED';Used HTTP authentication method.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_HTTPAUTH_USED.html](https://curl.haxx.se/libcurl/c/CURLINFO_HTTPAUTH_USED.html)
property LASTSOCKET
readonly LASTSOCKET: 'LASTSOCKET';(Deprecated) Last socket used.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_LASTSOCKET.html](https://curl.haxx.se/libcurl/c/CURLINFO_LASTSOCKET.html)
property LOCAL_IP
readonly LOCAL_IP: 'LOCAL_IP';Source IP address of the last connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_LOCAL_IP.html](https://curl.haxx.se/libcurl/c/CURLINFO_LOCAL_IP.html)
property LOCAL_PORT
readonly LOCAL_PORT: 'LOCAL_PORT';Source port number of the last connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_LOCAL_PORT.html](https://curl.haxx.se/libcurl/c/CURLINFO_LOCAL_PORT.html)
property NAMELOOKUP_TIME
readonly NAMELOOKUP_TIME: 'NAMELOOKUP_TIME';Time from start until name resolving completed as a double.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_NAMELOOKUP_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_NAMELOOKUP_TIME.html)
property NAMELOOKUP_TIME_T
readonly NAMELOOKUP_TIME_T: 'NAMELOOKUP_TIME_T';Time from start until name resolving completed in number of microseconds.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_NAMELOOKUP_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_NAMELOOKUP_TIME_T.html)
property NUM_CONNECTS
readonly NUM_CONNECTS: 'NUM_CONNECTS';Number of new successful connections used for previous transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_NUM_CONNECTS.html](https://curl.haxx.se/libcurl/c/CURLINFO_NUM_CONNECTS.html)
property OS_ERRNO
readonly OS_ERRNO: 'OS_ERRNO';The errno from the last failure to connect.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_OS_ERRNO.html](https://curl.haxx.se/libcurl/c/CURLINFO_OS_ERRNO.html)
property POSTTRANSFER_TIME_T
readonly POSTTRANSFER_TIME_T: 'POSTTRANSFER_TIME_T';The time it took from the start until the last byte is sent by libcurl. In microseconds. (Added in 8.10.0)
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_POSTTRANSFER_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_POSTTRANSFER_TIME_T.html)
property PRETRANSFER_TIME
readonly PRETRANSFER_TIME: 'PRETRANSFER_TIME';The time it took from the start until the file transfer is just about to begin. This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PRETRANSFER_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_PRETRANSFER_TIME.html)
property PRETRANSFER_TIME_T
readonly PRETRANSFER_TIME_T: 'PRETRANSFER_TIME_T';The time it took from the start until the file transfer is just about to begin. This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved. In microseconds.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PRETRANSFER_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_PRETRANSFER_TIME_T.html)
property PRIMARY_IP
readonly PRIMARY_IP: 'PRIMARY_IP';Destination IP address of the last connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PRIMARY_IP.html](https://curl.haxx.se/libcurl/c/CURLINFO_PRIMARY_IP.html)
property PRIMARY_PORT
readonly PRIMARY_PORT: 'PRIMARY_PORT';Destination port of the last connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PRIMARY_PORT.html](https://curl.haxx.se/libcurl/c/CURLINFO_PRIMARY_PORT.html)
property PRIVATE
readonly PRIVATE: 'PRIVATE';User's private data pointer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PRIVATE.html](https://curl.haxx.se/libcurl/c/CURLINFO_PRIVATE.html)
property PROTOCOL
readonly PROTOCOL: 'PROTOCOL';(Deprecated) The protocol used for the connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLINFO_PROTOCOL.html)
property PROXY_ERROR
readonly PROXY_ERROR: 'PROXY_ERROR';Detailed proxy error.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PROXY_ERROR.html](https://curl.haxx.se/libcurl/c/CURLINFO_PROXY_ERROR.html)
property PROXY_SSL_VERIFYRESULT
readonly PROXY_SSL_VERIFYRESULT: 'PROXY_SSL_VERIFYRESULT';Proxy certificate verification result.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PROXY_SSL_VERIFYRESULT.html](https://curl.haxx.se/libcurl/c/CURLINFO_PROXY_SSL_VERIFYRESULT.html)
property PROXYAUTH_AVAIL
readonly PROXYAUTH_AVAIL: 'PROXYAUTH_AVAIL';Available HTTP proxy authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PROXYAUTH_AVAIL.html](https://curl.haxx.se/libcurl/c/CURLINFO_PROXYAUTH_AVAIL.html)
property PROXYAUTH_USED
readonly PROXYAUTH_USED: 'PROXYAUTH_USED';Used HTTP proxy authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_PROXYAUTH_USED.html](https://curl.haxx.se/libcurl/c/CURLINFO_PROXYAUTH_USED.html)
property QUEUE_TIME_T
readonly QUEUE_TIME_T: 'QUEUE_TIME_T';The time during which the transfer was held in a waiting queue before it could start for real in number of microseconds. (Added in 8.6.0)
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_QUEUE_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_QUEUE_TIME_T.html)
property REDIRECT_COUNT
readonly REDIRECT_COUNT: 'REDIRECT_COUNT';Total number of redirects that were followed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_COUNT.html](https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_COUNT.html)
property REDIRECT_TIME
readonly REDIRECT_TIME: 'REDIRECT_TIME';The time it took for all redirection steps include name lookup, connect, pretransfer and transfer before final transaction was started. So, this is zero if no redirection took place. As a double.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_TIME.html)
property REDIRECT_TIME_T
readonly REDIRECT_TIME_T: 'REDIRECT_TIME_T';The time it took for all redirection steps include name lookup, connect, pretransfer and transfer before final transaction was started. So, this is zero if no redirection took place. In number of microseconds.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_TIME_T.html)
property REDIRECT_URL
readonly REDIRECT_URL: 'REDIRECT_URL';URL a redirect would take you to, had you enabled redirects.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_URL.html](https://curl.haxx.se/libcurl/c/CURLINFO_REDIRECT_URL.html)
property REFERER
readonly REFERER: 'REFERER';Referrer header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REFERER.html](https://curl.haxx.se/libcurl/c/CURLINFO_REFERER.html)
property REQUEST_SIZE
readonly REQUEST_SIZE: 'REQUEST_SIZE';Number of bytes sent in the issued HTTP requests.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_REQUEST_SIZE.html](https://curl.haxx.se/libcurl/c/CURLINFO_REQUEST_SIZE.html)
property RESPONSE_CODE
readonly RESPONSE_CODE: 'RESPONSE_CODE';Last received response code.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html](https://curl.haxx.se/libcurl/c/CURLINFO_RESPONSE_CODE.html)
property RETRY_AFTER
readonly RETRY_AFTER: 'RETRY_AFTER';The value from the Retry-After header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RETRY_AFTER.html](https://curl.haxx.se/libcurl/c/CURLINFO_RETRY_AFTER.html)
property RTSP_CLIENT_CSEQ
readonly RTSP_CLIENT_CSEQ: 'RTSP_CLIENT_CSEQ';The RTSP client CSeq that is expected next.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_CLIENT_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_CLIENT_CSEQ.html)
property RTSP_CSEQ_RECV
readonly RTSP_CSEQ_RECV: 'RTSP_CSEQ_RECV';RTSP CSeq last received.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_CSEQ_RECV.html](https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_CSEQ_RECV.html)
property RTSP_SERVER_CSEQ
readonly RTSP_SERVER_CSEQ: 'RTSP_SERVER_CSEQ';The RTSP server CSeq that is expected next.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_SERVER_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_SERVER_CSEQ.html)
property RTSP_SESSION_ID
readonly RTSP_SESSION_ID: 'RTSP_SESSION_ID';RTSP session ID.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_SESSION_ID.html](https://curl.haxx.se/libcurl/c/CURLINFO_RTSP_SESSION_ID.html)
property SCHEME
readonly SCHEME: 'SCHEME';The scheme used for the connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SCHEME.html](https://curl.haxx.se/libcurl/c/CURLINFO_SCHEME.html)
property SIZE_DOWNLOAD
readonly SIZE_DOWNLOAD: 'SIZE_DOWNLOAD';(Deprecated) Number of bytes downloaded.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_DOWNLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_DOWNLOAD.html)
property SIZE_DOWNLOAD_T
readonly SIZE_DOWNLOAD_T: 'SIZE_DOWNLOAD_T';Number of bytes downloaded.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_DOWNLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_DOWNLOAD_T.html)
property SIZE_UPLOAD
readonly SIZE_UPLOAD: 'SIZE_UPLOAD';(Deprecated) Number of bytes uploaded.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_UPLOAD.html)
property SIZE_UPLOAD_T
readonly SIZE_UPLOAD_T: 'SIZE_UPLOAD_T';Number of bytes uploaded.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_UPLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_SIZE_UPLOAD_T.html)
property SPEED_DOWNLOAD
readonly SPEED_DOWNLOAD: 'SPEED_DOWNLOAD';(Deprecated) Average download speed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD.html)
property SPEED_DOWNLOAD_T
readonly SPEED_DOWNLOAD_T: 'SPEED_DOWNLOAD_T';Average download speed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_DOWNLOAD_T.html)
property SPEED_UPLOAD
readonly SPEED_UPLOAD: 'SPEED_UPLOAD';(Deprecated) Average upload speed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_UPLOAD.html)
property SPEED_UPLOAD_T
readonly SPEED_UPLOAD_T: 'SPEED_UPLOAD_T';Average upload speed in number of bytes per second.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_UPLOAD_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_SPEED_UPLOAD_T.html)
property SSL_ENGINES
readonly SSL_ENGINES: 'SSL_ENGINES';A list of OpenSSL crypto engines.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SSL_ENGINES.html](https://curl.haxx.se/libcurl/c/CURLINFO_SSL_ENGINES.html)
property SSL_VERIFYRESULT
readonly SSL_VERIFYRESULT: 'SSL_VERIFYRESULT';Certificate verification result.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_SSL_VERIFYRESULT.html](https://curl.haxx.se/libcurl/c/CURLINFO_SSL_VERIFYRESULT.html)
property STARTTRANSFER_TIME
readonly STARTTRANSFER_TIME: 'STARTTRANSFER_TIME';The time it took from the start until the first byte is received by libcurl. As a double.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_STARTTRANSFER_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_STARTTRANSFER_TIME.html)
property STARTTRANSFER_TIME_T
readonly STARTTRANSFER_TIME_T: 'STARTTRANSFER_TIME_T';The time it took from the start until the first byte is received by libcurl. In microseconds.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_STARTTRANSFER_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_STARTTRANSFER_TIME_T.html)
property TLS_SESSION
readonly TLS_SESSION: 'TLS_SESSION';(Deprecated) TLS session info that can be used for further processing. See CURLINFO_TLS_SESSION. Use CURLINFO_TLS_SSL_PTR instead.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_TLS_SESSION.html](https://curl.haxx.se/libcurl/c/CURLINFO_TLS_SESSION.html)
property TLS_SSL_PTR
readonly TLS_SSL_PTR: 'TLS_SSL_PTR';TLS session info that can be used for further processing.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_TLS_SSL_PTR.html](https://curl.haxx.se/libcurl/c/CURLINFO_TLS_SSL_PTR.html)
property TOTAL_TIME
readonly TOTAL_TIME: 'TOTAL_TIME';Total time of previous transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_TOTAL_TIME.html](https://curl.haxx.se/libcurl/c/CURLINFO_TOTAL_TIME.html)
property TOTAL_TIME_T
readonly TOTAL_TIME_T: 'TOTAL_TIME_T';Total time of previous transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_TOTAL_TIME_T.html](https://curl.haxx.se/libcurl/c/CURLINFO_TOTAL_TIME_T.html)
property USED_PROXY
readonly USED_PROXY: 'USED_PROXY';Whether the proxy was used (Added in 8.7.0).
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_USED_PROXY.html](https://curl.haxx.se/libcurl/c/CURLINFO_USED_PROXY.html)
property XFER_ID
readonly XFER_ID: 'XFER_ID';The ID of the transfer. (Added in 8.2.0)
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLINFO_XFER_ID.html](https://curl.haxx.se/libcurl/c/CURLINFO_XFER_ID.html)
interface CurlOption
interface CurlOption {}Modifiers
@public
property ABSTRACT_UNIX_SOCKET
readonly ABSTRACT_UNIX_SOCKET: 'ABSTRACT_UNIX_SOCKET';Path to an abstract Unix domain socket.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html)
property ACCEPT_ENCODING
readonly ACCEPT_ENCODING: 'ACCEPT_ENCODING';Accept-Encoding and automatic decompressing data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html)
property ACCEPTTIMEOUT_MS
readonly ACCEPTTIMEOUT_MS: 'ACCEPTTIMEOUT_MS';Timeout for waiting for the server's connect back to be accepted.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html)
property ADDRESS_SCOPE
readonly ADDRESS_SCOPE: 'ADDRESS_SCOPE';IPv6 scope for local addresses.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html)
property ALTSVC
readonly ALTSVC: 'ALTSVC';Specify the Alt-Svc: cache filename.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html)
property ALTSVC_CTRL
readonly ALTSVC_CTRL: 'ALTSVC_CTRL';Enable and configure Alt-Svc: treatment.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html)
property APPEND
readonly APPEND: 'APPEND';Append to remote file.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html](https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html)
property AUTOREFERER
readonly AUTOREFERER: 'AUTOREFERER';Automatically set Referer: header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html)
property AWS_SIGV4
readonly AWS_SIGV4: 'AWS_SIGV4';AWS HTTP V4 Signature. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html](https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html)
property BUFFERSIZE
readonly BUFFERSIZE: 'BUFFERSIZE';Ask for alternate buffer size.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html)
property CA_CACHE_TIMEOUT
readonly CA_CACHE_TIMEOUT: 'CA_CACHE_TIMEOUT';Timeout for CA cache.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html)
property CAINFO
readonly CAINFO: 'CAINFO';CA cert bundle.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html)
property CAINFO_BLOB
readonly CAINFO_BLOB: 'CAINFO_BLOB';CA cert bundle memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html)
property CAPATH
readonly CAPATH: 'CAPATH';Path to CA cert bundle.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html)
property CERTINFO
readonly CERTINFO: 'CERTINFO';Extract certificate info.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html)
property CHUNK_BGN_FUNCTION
readonly CHUNK_BGN_FUNCTION: 'CHUNK_BGN_FUNCTION';Callback for wildcard download start of chunk.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html)
property CHUNK_END_FUNCTION
readonly CHUNK_END_FUNCTION: 'CHUNK_END_FUNCTION';Callback for wildcard download end of chunk.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html)
property CONNECT_ONLY
readonly CONNECT_ONLY: 'CONNECT_ONLY';Only connect, nothing else.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html)
property CONNECT_TO
readonly CONNECT_TO: 'CONNECT_TO';Connect to a specific host and port.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html)
property CONNECTTIMEOUT
readonly CONNECTTIMEOUT: 'CONNECTTIMEOUT';Timeout for the connection phase.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html)
property CONNECTTIMEOUT_MS
readonly CONNECTTIMEOUT_MS: 'CONNECTTIMEOUT_MS';Millisecond timeout for the connection phase.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html)
property COOKIE
readonly COOKIE: 'COOKIE';Cookie(s) to send.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html)
property COOKIEFILE
readonly COOKIEFILE: 'COOKIEFILE';File to read cookies from.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html)
property COOKIEJAR
readonly COOKIEJAR: 'COOKIEJAR';File to write cookies to.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html)
property COOKIELIST
readonly COOKIELIST: 'COOKIELIST';Add or control cookies.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html)
property COOKIESESSION
readonly COOKIESESSION: 'COOKIESESSION';Start a new cookie session.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html)
property CRLF
readonly CRLF: 'CRLF';Convert newlines.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html)
property CRLFILE
readonly CRLFILE: 'CRLFILE';Certificate Revocation List.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html)
property CUSTOMREQUEST
readonly CUSTOMREQUEST: 'CUSTOMREQUEST';Custom request/method.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html)
property DEBUGFUNCTION
readonly DEBUGFUNCTION: 'DEBUGFUNCTION';Callback for debug information.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html)
property DEFAULT_PROTOCOL
readonly DEFAULT_PROTOCOL: 'DEFAULT_PROTOCOL';Default protocol.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html)
property DIRLISTONLY
readonly DIRLISTONLY: 'DIRLISTONLY';List only.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html)
property DISALLOW_USERNAME_IN_URL
readonly DISALLOW_USERNAME_IN_URL: 'DISALLOW_USERNAME_IN_URL';Do not allow username in URL.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html)
property DNS_CACHE_TIMEOUT
readonly DNS_CACHE_TIMEOUT: 'DNS_CACHE_TIMEOUT';Timeout for DNS cache.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html)
property DNS_INTERFACE
readonly DNS_INTERFACE: 'DNS_INTERFACE';Bind name resolves to this interface.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html)
property DNS_LOCAL_IP4
readonly DNS_LOCAL_IP4: 'DNS_LOCAL_IP4';Bind name resolves to this IP4 address. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html)
property DNS_LOCAL_IP6
readonly DNS_LOCAL_IP6: 'DNS_LOCAL_IP6';Bind name resolves to this IP6 address. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html)
property DNS_SERVERS
readonly DNS_SERVERS: 'DNS_SERVERS';Preferred DNS servers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html)
property DNS_SHUFFLE_ADDRESSES
readonly DNS_SHUFFLE_ADDRESSES: 'DNS_SHUFFLE_ADDRESSES';Shuffle addresses before use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html)
property DNS_USE_GLOBAL_CACHE
readonly DNS_USE_GLOBAL_CACHE: 'DNS_USE_GLOBAL_CACHE';OBSOLETE Enable global DNS cache.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html)
property DOH_SSL_VERIFYHOST
readonly DOH_SSL_VERIFYHOST: 'DOH_SSL_VERIFYHOST';Verify the hostname in the DoH (DNS-over-HTTPS) SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html)
property DOH_SSL_VERIFYPEER
readonly DOH_SSL_VERIFYPEER: 'DOH_SSL_VERIFYPEER';Verify the DoH (DNS-over-HTTPS) SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html)
property DOH_SSL_VERIFYSTATUS
readonly DOH_SSL_VERIFYSTATUS: 'DOH_SSL_VERIFYSTATUS';Verify the DoH (DNS-over-HTTPS) SSL certificate's status.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html)
property DOH_URL
readonly DOH_URL: 'DOH_URL';Use this DoH server for name resolves.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html)
property ECH
readonly ECH: 'ECH';Set the configuration for ECH.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html](https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html)
property EGDSOCKET
readonly EGDSOCKET: 'EGDSOCKET';OBSOLETE Identify EGD socket for entropy.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html)
property EXPECT_100_TIMEOUT_MS
readonly EXPECT_100_TIMEOUT_MS: 'EXPECT_100_TIMEOUT_MS';100-continue timeout. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html)
property FAILONERROR
readonly FAILONERROR: 'FAILONERROR';Fail on HTTP 4xx errors.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html)
property FILETIME
readonly FILETIME: 'FILETIME';Request file modification date and time.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html)
property FNMATCH_FUNCTION
readonly FNMATCH_FUNCTION: 'FNMATCH_FUNCTION';Callback for wildcard matching.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html)
property FOLLOWLOCATION
readonly FOLLOWLOCATION: 'FOLLOWLOCATION';Follow HTTP redirects.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html)
property FORBID_REUSE
readonly FORBID_REUSE: 'FORBID_REUSE';Prevent subsequent connections from reusing this.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html)
property FRESH_CONNECT
readonly FRESH_CONNECT: 'FRESH_CONNECT';Use a new connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html)
property FTP_ACCOUNT
readonly FTP_ACCOUNT: 'FTP_ACCOUNT';Send ACCT command.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html)
property FTP_ALTERNATIVE_TO_USER
readonly FTP_ALTERNATIVE_TO_USER: 'FTP_ALTERNATIVE_TO_USER';Alternative to USER.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html)
property FTP_CREATE_MISSING_DIRS
readonly FTP_CREATE_MISSING_DIRS: 'FTP_CREATE_MISSING_DIRS';Create missing directories on the remote server.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html)
property FTP_FILEMETHOD
readonly FTP_FILEMETHOD: 'FTP_FILEMETHOD';Specify how to reach files.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html)
property FTP_SKIP_PASV_IP
readonly FTP_SKIP_PASV_IP: 'FTP_SKIP_PASV_IP';Ignore the IP address in the PASV response.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html)
property FTP_SSL_CCC
readonly FTP_SSL_CCC: 'FTP_SSL_CCC';Back to non-TLS again after authentication.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html)
property FTP_USE_EPRT
readonly FTP_USE_EPRT: 'FTP_USE_EPRT';Use EPRT.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html)
property FTP_USE_EPSV
readonly FTP_USE_EPSV: 'FTP_USE_EPSV';Use EPSV.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html)
property FTP_USE_PRET
readonly FTP_USE_PRET: 'FTP_USE_PRET';Use PRET.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html)
property FTPPORT
readonly FTPPORT: 'FTPPORT';Use active FTP.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html)
property FTPSSLAUTH
readonly FTPSSLAUTH: 'FTPSSLAUTH';Control how to do TLS.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html)
property GSSAPI_DELEGATION
readonly GSSAPI_DELEGATION: 'GSSAPI_DELEGATION';Disable GSS-API delegation.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html)
property HAPPY_EYEBALLS_TIMEOUT_MS
readonly HAPPY_EYEBALLS_TIMEOUT_MS: 'HAPPY_EYEBALLS_TIMEOUT_MS';Timeout for happy eyeballs.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html)
property HAPROXY_CLIENT_IP
readonly HAPROXY_CLIENT_IP: 'HAPROXY_CLIENT_IP';Spoof the client IP in an HAProxy PROXY protocol v1 header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html)
property HAPROXYPROTOCOL
readonly HAPROXYPROTOCOL: 'HAPROXYPROTOCOL';Send an HAProxy PROXY protocol v1 header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html)
property HEADER
readonly HEADER: 'HEADER';Include the header in the body output.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html)
property HEADERFUNCTION
readonly HEADERFUNCTION: 'HEADERFUNCTION';Callback for writing received headers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html)
property HEADEROPT
readonly HEADEROPT: 'HEADEROPT';Control custom headers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html)
property HSTS
readonly HSTS: 'HSTS';Set HSTS cache file.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html)
property HSTS_CTRL
readonly HSTS_CTRL: 'HSTS_CTRL';Enable HSTS.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html)
property HSTSREADFUNCTION
readonly HSTSREADFUNCTION: 'HSTSREADFUNCTION';Set HSTS read callback.
You can either return a single
CurlHstsReadCallbackResultobject or an array ofCurlHstsReadCallbackResultobjects. 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 untilnullis returned.Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html)
property HSTSWRITEFUNCTION
readonly HSTSWRITEFUNCTION: 'HSTSWRITEFUNCTION';Set HSTS write callback.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html)
property HTTP_CONTENT_DECODING
readonly HTTP_CONTENT_DECODING: 'HTTP_CONTENT_DECODING';Disable Content decoding.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html)
property HTTP_TRANSFER_DECODING
readonly HTTP_TRANSFER_DECODING: 'HTTP_TRANSFER_DECODING';Disable Transfer decoding.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html)
property HTTP_VERSION
readonly HTTP_VERSION: 'HTTP_VERSION';HTTP version to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html)
property HTTP09_ALLOWED
readonly HTTP09_ALLOWED: 'HTTP09_ALLOWED';Allow HTTP/0.9 responses.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html)
property HTTP200ALIASES
readonly HTTP200ALIASES: 'HTTP200ALIASES';Alternative versions of 200 OK. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html)
property HTTPAUTH
readonly HTTPAUTH: 'HTTPAUTH';HTTP server authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html)
property HTTPGET
readonly HTTPGET: 'HTTPGET';Do an HTTP GET request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html)
property HTTPHEADER
readonly HTTPHEADER: 'HTTPHEADER';Custom HTTP headers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html)
property HTTPPOST
readonly HTTPPOST: 'HTTPPOST';Deprecated option Multipart formpost HTTP POST.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html)
property HTTPPROXYTUNNEL
readonly HTTPPROXYTUNNEL: 'HTTPPROXYTUNNEL';Tunnel through the HTTP proxy.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html)
property IGNORE_CONTENT_LENGTH
readonly IGNORE_CONTENT_LENGTH: 'IGNORE_CONTENT_LENGTH';Ignore Content-Length.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html)
property INFILESIZE
readonly INFILESIZE: 'INFILESIZE';Size of file to send.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html)
property INFILESIZE_LARGE
readonly INFILESIZE_LARGE: 'INFILESIZE_LARGE';Size of file to send.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html)
property INTERFACE
readonly INTERFACE: 'INTERFACE';Bind connection locally to this.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html)
property INTERLEAVEFUNCTION
readonly INTERLEAVEFUNCTION: 'INTERLEAVEFUNCTION';Callback for RTSP interleaved data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html)
property IPRESOLVE
readonly IPRESOLVE: 'IPRESOLVE';IP version to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html)
property ISSUERCERT
readonly ISSUERCERT: 'ISSUERCERT';Issuer certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html)
property ISSUERCERT_BLOB
readonly ISSUERCERT_BLOB: 'ISSUERCERT_BLOB';Issuer certificate memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html)
property KEEP_SENDING_ON_ERROR
readonly KEEP_SENDING_ON_ERROR: 'KEEP_SENDING_ON_ERROR';Keep sending on HTTP >= 300 errors.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html)
property KEYPASSWD
readonly KEYPASSWD: 'KEYPASSWD';Client key password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html)
property KRBLEVEL
readonly KRBLEVEL: 'KRBLEVEL';OBSOLETE. Kerberos security level.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html)
property LOCALPORT
readonly LOCALPORT: 'LOCALPORT';Bind connection locally to this port.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html)
property LOCALPORTRANGE
readonly LOCALPORTRANGE: 'LOCALPORTRANGE';Bind connection locally to port range.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html)
property LOGIN_OPTIONS
readonly LOGIN_OPTIONS: 'LOGIN_OPTIONS';Login options.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html)
property LOW_SPEED_LIMIT
readonly LOW_SPEED_LIMIT: 'LOW_SPEED_LIMIT';Low speed limit to abort transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html)
property LOW_SPEED_TIME
readonly LOW_SPEED_TIME: 'LOW_SPEED_TIME';Time to be below the speed to trigger low speed abort.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html)
property MAIL_AUTH
readonly MAIL_AUTH: 'MAIL_AUTH';Authentication address.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html)
property MAIL_FROM
readonly MAIL_FROM: 'MAIL_FROM';Address of the sender.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html)
property MAIL_RCPT
readonly MAIL_RCPT: 'MAIL_RCPT';Address of the recipients.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html)
property MAIL_RCPT_ALLOWFAILS
readonly MAIL_RCPT_ALLOWFAILS: 'MAIL_RCPT_ALLOWFAILS';Allow RCPT TO command to fail for some recipients.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html)
property MAX_RECV_SPEED_LARGE
readonly MAX_RECV_SPEED_LARGE: 'MAX_RECV_SPEED_LARGE';Cap the download speed to this.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html)
property MAX_SEND_SPEED_LARGE
readonly MAX_SEND_SPEED_LARGE: 'MAX_SEND_SPEED_LARGE';Cap the upload speed to this.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html)
property MAXAGE_CONN
readonly MAXAGE_CONN: 'MAXAGE_CONN';Limit the age (idle time) of connections for reuse.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html)
property MAXCONNECTS
readonly MAXCONNECTS: 'MAXCONNECTS';Maximum number of connections in the connection pool.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html)
property MAXFILESIZE
readonly MAXFILESIZE: 'MAXFILESIZE';Maximum file size to get.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html)
property MAXFILESIZE_LARGE
readonly MAXFILESIZE_LARGE: 'MAXFILESIZE_LARGE';Maximum file size to get.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html)
property MAXLIFETIME_CONN
readonly MAXLIFETIME_CONN: 'MAXLIFETIME_CONN';Limit the age (since creation) of connections for reuse.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html)
property MAXREDIRS
readonly MAXREDIRS: 'MAXREDIRS';Maximum number of redirects to follow.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html)
property MIME_OPTIONS
readonly MIME_OPTIONS: 'MIME_OPTIONS';Set MIME option flags.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html)
property MIMEPOST
readonly MIMEPOST: 'MIMEPOST';Post/send MIME data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html)
property NETRC
readonly NETRC: 'NETRC';Enable .netrc parsing.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html)
property NETRC_FILE
readonly NETRC_FILE: 'NETRC_FILE';.netrc filename.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html)
property NEW_DIRECTORY_PERMS
readonly NEW_DIRECTORY_PERMS: 'NEW_DIRECTORY_PERMS';Mode for creating new remote directories.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html)
property NEW_FILE_PERMS
readonly NEW_FILE_PERMS: 'NEW_FILE_PERMS';Mode for creating new remote files.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html)
property NOBODY
readonly NOBODY: 'NOBODY';Do not get the body contents.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html)
property NOPROGRESS
readonly NOPROGRESS: 'NOPROGRESS';Shut off the progress meter.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html)
property NOPROXY
readonly NOPROXY: 'NOPROXY';Filter out hosts from proxy use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html)
property NOSIGNAL
readonly NOSIGNAL: 'NOSIGNAL';Do not install signal handlers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html)
property PASSWORD
readonly PASSWORD: 'PASSWORD';Password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html)
property PATH_AS_IS
readonly PATH_AS_IS: 'PATH_AS_IS';Disable squashing /../ and /./ sequences in the path.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html)
property PINNEDPUBLICKEY
readonly PINNEDPUBLICKEY: 'PINNEDPUBLICKEY';Set pinned SSL public key .
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html)
property PIPEWAIT
readonly PIPEWAIT: 'PIPEWAIT';Wait on connection to pipeline on it.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html)
property PORT
readonly PORT: 'PORT';Port number to connect to.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html)
property POST
readonly POST: 'POST';Make an HTTP POST.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POST.html](https://curl.haxx.se/libcurl/c/CURLOPT_POST.html)
property POSTFIELDS
readonly POSTFIELDS: 'POSTFIELDS';Send a POST with this data - does not copy it.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html)
property POSTFIELDSIZE
readonly POSTFIELDSIZE: 'POSTFIELDSIZE';The POST data is this big.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html)
property POSTFIELDSIZE_LARGE
readonly POSTFIELDSIZE_LARGE: 'POSTFIELDSIZE_LARGE';The POST data is this big.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html)
property POSTQUOTE
readonly POSTQUOTE: 'POSTQUOTE';Commands to run after transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html)
property POSTREDIR
readonly POSTREDIR: 'POSTREDIR';How to act on redirects after POST.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html)
property PRE_PROXY
readonly PRE_PROXY: 'PRE_PROXY';Socks proxy to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html)
property PREQUOTE
readonly PREQUOTE: 'PREQUOTE';Commands to run just before transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html)
property PREREQFUNCTION
readonly PREREQFUNCTION: 'PREREQFUNCTION';Callback to be called after a connection is established but before a request is made on that connection.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html)
property PROGRESSFUNCTION
readonly PROGRESSFUNCTION: 'PROGRESSFUNCTION';OBSOLETE callback for progress meter.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html)
property PROTOCOLS
readonly PROTOCOLS: 'PROTOCOLS';Deprecated option Allowed protocols.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html)
property PROTOCOLS_STR
readonly PROTOCOLS_STR: 'PROTOCOLS_STR';Allowed protocols.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html)
property PROXY
readonly PROXY: 'PROXY';Proxy to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html)
property PROXY_CAINFO
readonly PROXY_CAINFO: 'PROXY_CAINFO';Proxy CA cert bundle.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html)
property PROXY_CAINFO_BLOB
readonly PROXY_CAINFO_BLOB: 'PROXY_CAINFO_BLOB';Proxy CA cert bundle memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html)
property PROXY_CAPATH
readonly PROXY_CAPATH: 'PROXY_CAPATH';Path to proxy CA cert bundle.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html)
property PROXY_CRLFILE
readonly PROXY_CRLFILE: 'PROXY_CRLFILE';Proxy Certificate Revocation List.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html)
property PROXY_ISSUERCERT
readonly PROXY_ISSUERCERT: 'PROXY_ISSUERCERT';Proxy issuer certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html)
property PROXY_ISSUERCERT_BLOB
readonly PROXY_ISSUERCERT_BLOB: 'PROXY_ISSUERCERT_BLOB';Proxy issuer certificate memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html)
property PROXY_KEYPASSWD
readonly PROXY_KEYPASSWD: 'PROXY_KEYPASSWD';Proxy client key password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html)
property PROXY_PINNEDPUBLICKEY
readonly PROXY_PINNEDPUBLICKEY: 'PROXY_PINNEDPUBLICKEY';Set the proxy's pinned SSL public key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html)
property PROXY_SERVICE_NAME
readonly PROXY_SERVICE_NAME: 'PROXY_SERVICE_NAME';Proxy authentication service name.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html)
property PROXY_SSL_CIPHER_LIST
readonly PROXY_SSL_CIPHER_LIST: 'PROXY_SSL_CIPHER_LIST';Proxy ciphers to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html)
property PROXY_SSL_OPTIONS
readonly PROXY_SSL_OPTIONS: 'PROXY_SSL_OPTIONS';Control proxy SSL behavior.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html)
property PROXY_SSL_VERIFYHOST
readonly PROXY_SSL_VERIFYHOST: 'PROXY_SSL_VERIFYHOST';Verify the hostname in the proxy SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html)
property PROXY_SSL_VERIFYPEER
readonly PROXY_SSL_VERIFYPEER: 'PROXY_SSL_VERIFYPEER';Verify the proxy SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html)
property PROXY_SSLCERT
readonly PROXY_SSLCERT: 'PROXY_SSLCERT';Proxy client cert.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html)
property PROXY_SSLCERT_BLOB
readonly PROXY_SSLCERT_BLOB: 'PROXY_SSLCERT_BLOB';Proxy client cert memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html)
property PROXY_SSLCERTTYPE
readonly PROXY_SSLCERTTYPE: 'PROXY_SSLCERTTYPE';Proxy client cert type.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html)
property PROXY_SSLKEY
readonly PROXY_SSLKEY: 'PROXY_SSLKEY';Proxy client key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html)
property PROXY_SSLKEY_BLOB
readonly PROXY_SSLKEY_BLOB: 'PROXY_SSLKEY_BLOB';Proxy client key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html)
property PROXY_SSLKEYTYPE
readonly PROXY_SSLKEYTYPE: 'PROXY_SSLKEYTYPE';Proxy client key type.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html)
property PROXY_SSLVERSION
readonly PROXY_SSLVERSION: 'PROXY_SSLVERSION';Proxy SSL version to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html)
property PROXY_TLS13_CIPHERS
readonly PROXY_TLS13_CIPHERS: 'PROXY_TLS13_CIPHERS';Proxy TLS 1.3 cipher suites to use. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html)
property PROXY_TLSAUTH_PASSWORD
readonly PROXY_TLSAUTH_PASSWORD: 'PROXY_TLSAUTH_PASSWORD';Proxy TLS authentication password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html)
property PROXY_TLSAUTH_TYPE
readonly PROXY_TLSAUTH_TYPE: 'PROXY_TLSAUTH_TYPE';Proxy TLS authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html)
property PROXY_TLSAUTH_USERNAME
readonly PROXY_TLSAUTH_USERNAME: 'PROXY_TLSAUTH_USERNAME';Proxy TLS authentication username.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html)
property PROXY_TRANSFER_MODE
readonly PROXY_TRANSFER_MODE: 'PROXY_TRANSFER_MODE';Add transfer mode to URL over proxy.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html)
property PROXYAUTH
readonly PROXYAUTH: 'PROXYAUTH';HTTP proxy authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html)
property PROXYHEADER
readonly PROXYHEADER: 'PROXYHEADER';Custom HTTP headers sent to proxy.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html)
property PROXYPASSWORD
readonly PROXYPASSWORD: 'PROXYPASSWORD';Proxy password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html)
property PROXYPORT
readonly PROXYPORT: 'PROXYPORT';Proxy port to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html)
property PROXYTYPE
readonly PROXYTYPE: 'PROXYTYPE';Proxy type.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html)
property PROXYUSERNAME
readonly PROXYUSERNAME: 'PROXYUSERNAME';Proxy username.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html)
property PROXYUSERPWD
readonly PROXYUSERPWD: 'PROXYUSERPWD';Proxy username and password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html)
property PUT
readonly PUT: 'PUT';Deprecated option Issue an HTTP PUT request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html)
property QUICK_EXIT
readonly QUICK_EXIT: 'QUICK_EXIT';To be set by toplevel tools like "curl" to skip lengthy cleanups when they are about to call exit() anyway.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html)
property QUOTE
readonly QUOTE: 'QUOTE';Commands to run before transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html)
property RANDOM_FILE
readonly RANDOM_FILE: 'RANDOM_FILE';OBSOLETE Provide source for entropy random data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html)
property RANGE
readonly RANGE: 'RANGE';Range requests.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html)
property READDATA
readonly READDATA: 'READDATA';Data pointer to pass to the read callback.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html](https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html)
property READFUNCTION
readonly READFUNCTION: 'READFUNCTION';Callback for reading data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html)
property REDIR_PROTOCOLS
readonly REDIR_PROTOCOLS: 'REDIR_PROTOCOLS';Deprecated option Protocols to allow redirects to.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html)
property REDIR_PROTOCOLS_STR
readonly REDIR_PROTOCOLS_STR: 'REDIR_PROTOCOLS_STR';Protocols to allow redirects to.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html)
property REFERER
readonly REFERER: 'REFERER';Referer: header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html)
property REQUEST_TARGET
readonly REQUEST_TARGET: 'REQUEST_TARGET';Set the request target.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html)
property RESOLVE
readonly RESOLVE: 'RESOLVE';Provide fixed/fake name resolves.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html)
property RESUME_FROM
readonly RESUME_FROM: 'RESUME_FROM';Resume a transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html)
property RESUME_FROM_LARGE
readonly RESUME_FROM_LARGE: 'RESUME_FROM_LARGE';Resume a transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html)
property RTSP_CLIENT_CSEQ
readonly RTSP_CLIENT_CSEQ: 'RTSP_CLIENT_CSEQ';Client CSEQ number.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html)
property RTSP_REQUEST
readonly RTSP_REQUEST: 'RTSP_REQUEST';RTSP request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html)
property RTSP_SERVER_CSEQ
readonly RTSP_SERVER_CSEQ: 'RTSP_SERVER_CSEQ';CSEQ number for RTSP Server->Client request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html)
property RTSP_SESSION_ID
readonly RTSP_SESSION_ID: 'RTSP_SESSION_ID';RTSP session-id.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html)
property RTSP_STREAM_URI
readonly RTSP_STREAM_URI: 'RTSP_STREAM_URI';RTSP stream URI.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html)
property RTSP_TRANSPORT
readonly RTSP_TRANSPORT: 'RTSP_TRANSPORT';RTSP Transport: header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html)
property SASL_AUTHZID
readonly SASL_AUTHZID: 'SASL_AUTHZID';SASL authorization identity (identity to act as).
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html)
property SASL_IR
readonly SASL_IR: 'SASL_IR';Enable SASL initial response.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html)
property SEEKFUNCTION
readonly SEEKFUNCTION: 'SEEKFUNCTION';Callback for seek operations.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html)
property SERVER_RESPONSE_TIMEOUT
readonly SERVER_RESPONSE_TIMEOUT: 'SERVER_RESPONSE_TIMEOUT';Timeout for server responses.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html)
property SERVER_RESPONSE_TIMEOUT_MS
readonly SERVER_RESPONSE_TIMEOUT_MS: 'SERVER_RESPONSE_TIMEOUT_MS';Timeout for server responses.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html)
property SERVICE_NAME
readonly SERVICE_NAME: 'SERVICE_NAME';Authentication service name.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html)
property SHARE
readonly SHARE: 'SHARE';Share object to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html)
property SOCKS5_AUTH
readonly SOCKS5_AUTH: 'SOCKS5_AUTH';Socks5 authentication methods. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html)
property SOCKS5_GSSAPI_NEC
readonly SOCKS5_GSSAPI_NEC: 'SOCKS5_GSSAPI_NEC';Socks5 GSSAPI NEC mode. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html)
property SOCKS5_GSSAPI_SERVICE
readonly SOCKS5_GSSAPI_SERVICE: 'SOCKS5_GSSAPI_SERVICE';Deprecated option Socks5 GSSAPI service name. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html)
property SSH_AUTH_TYPES
readonly SSH_AUTH_TYPES: 'SSH_AUTH_TYPES';SSH authentication types.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html)
property SSH_COMPRESSION
readonly SSH_COMPRESSION: 'SSH_COMPRESSION';Enable SSH compression.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html)
property SSH_HOST_PUBLIC_KEY_MD5
readonly SSH_HOST_PUBLIC_KEY_MD5: 'SSH_HOST_PUBLIC_KEY_MD5';MD5 of host's public key. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html)
property SSH_HOST_PUBLIC_KEY_SHA256
readonly SSH_HOST_PUBLIC_KEY_SHA256: 'SSH_HOST_PUBLIC_KEY_SHA256';SHA256 of host's public key. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html)
property SSH_HOSTKEYFUNCTION
readonly SSH_HOSTKEYFUNCTION: 'SSH_HOSTKEYFUNCTION';Callback for checking host key handling.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html)
property SSH_KNOWNHOSTS
readonly SSH_KNOWNHOSTS: 'SSH_KNOWNHOSTS';Filename with known hosts.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html)
property SSH_PRIVATE_KEYFILE
readonly SSH_PRIVATE_KEYFILE: 'SSH_PRIVATE_KEYFILE';Filename of the private key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html)
property SSH_PUBLIC_KEYFILE
readonly SSH_PUBLIC_KEYFILE: 'SSH_PUBLIC_KEYFILE';Filename of the public key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html)
property SSL_CIPHER_LIST
readonly SSL_CIPHER_LIST: 'SSL_CIPHER_LIST';Ciphers to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html)
property SSL_EC_CURVES
readonly SSL_EC_CURVES: 'SSL_EC_CURVES';Set key exchange curves.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html)
property SSL_ENABLE_ALPN
readonly SSL_ENABLE_ALPN: 'SSL_ENABLE_ALPN';Enable use of ALPN.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html)
property SSL_ENABLE_NPN
readonly SSL_ENABLE_NPN: 'SSL_ENABLE_NPN';OBSOLETE Enable use of NPN.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html)
property SSL_FALSESTART
readonly SSL_FALSESTART: 'SSL_FALSESTART';Deprecated option Enable TLS False Start.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html)
property SSL_OPTIONS
readonly SSL_OPTIONS: 'SSL_OPTIONS';Control SSL behavior.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html)
property SSL_SESSIONID_CACHE
readonly SSL_SESSIONID_CACHE: 'SSL_SESSIONID_CACHE';Disable SSL session-id cache.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html)
property SSL_SIGNATURE_ALGORITHMS
readonly SSL_SIGNATURE_ALGORITHMS: 'SSL_SIGNATURE_ALGORITHMS';TLS signature algorithms to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html)
property SSL_VERIFYHOST
readonly SSL_VERIFYHOST: 'SSL_VERIFYHOST';Verify the hostname in the SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html)
property SSL_VERIFYPEER
readonly SSL_VERIFYPEER: 'SSL_VERIFYPEER';Verify the SSL certificate.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html)
property SSL_VERIFYSTATUS
readonly SSL_VERIFYSTATUS: 'SSL_VERIFYSTATUS';Verify the SSL certificate's status.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html)
property SSLCERT
readonly SSLCERT: 'SSLCERT';Client cert.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html)
property SSLCERT_BLOB
readonly SSLCERT_BLOB: 'SSLCERT_BLOB';Client cert memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html)
property SSLCERTTYPE
readonly SSLCERTTYPE: 'SSLCERTTYPE';Client cert type.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html)
property SSLENGINE
readonly SSLENGINE: 'SSLENGINE';Use identifier with SSL engine.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html)
property SSLENGINE_DEFAULT
readonly SSLENGINE_DEFAULT: 'SSLENGINE_DEFAULT';Default SSL engine.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html)
property SSLKEY
readonly SSLKEY: 'SSLKEY';Client key.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html)
property SSLKEY_BLOB
readonly SSLKEY_BLOB: 'SSLKEY_BLOB';Client key memory buffer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html)
property SSLKEYTYPE
readonly SSLKEYTYPE: 'SSLKEYTYPE';Client key type.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html)
property SSLVERSION
readonly SSLVERSION: 'SSLVERSION';SSL version to use.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html)
property STREAM_DEPENDS
readonly STREAM_DEPENDS: 'STREAM_DEPENDS';This HTTP/2 stream depends on another.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html)
property STREAM_DEPENDS_E
readonly STREAM_DEPENDS_E: 'STREAM_DEPENDS_E';This HTTP/2 stream depends on another exclusively.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html)
property STREAM_WEIGHT
readonly STREAM_WEIGHT: 'STREAM_WEIGHT';Set this HTTP/2 stream's weight.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html)
property SUPPRESS_CONNECT_HEADERS
readonly SUPPRESS_CONNECT_HEADERS: 'SUPPRESS_CONNECT_HEADERS';Suppress proxy CONNECT response headers from user callbacks.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html)
property TCP_FASTOPEN
readonly TCP_FASTOPEN: 'TCP_FASTOPEN';Enable TCP Fast Open.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html)
property TCP_KEEPALIVE
readonly TCP_KEEPALIVE: 'TCP_KEEPALIVE';Enable TCP keep-alive.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html)
property TCP_KEEPCNT
readonly TCP_KEEPCNT: 'TCP_KEEPCNT';Maximum number of keep-alive probes.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html)
property TCP_KEEPIDLE
readonly TCP_KEEPIDLE: 'TCP_KEEPIDLE';Idle time before sending keep-alive.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html)
property TCP_KEEPINTVL
readonly TCP_KEEPINTVL: 'TCP_KEEPINTVL';Interval between keep-alive probes.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html)
property TCP_NODELAY
readonly TCP_NODELAY: 'TCP_NODELAY';Disable the Nagle algorithm.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html)
property TELNETOPTIONS
readonly TELNETOPTIONS: 'TELNETOPTIONS';TELNET options.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html)
property TFTP_BLKSIZE
readonly TFTP_BLKSIZE: 'TFTP_BLKSIZE';TFTP block size.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html)
property TFTP_NO_OPTIONS
readonly TFTP_NO_OPTIONS: 'TFTP_NO_OPTIONS';Do not send TFTP options requests.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html)
property TIMECONDITION
readonly TIMECONDITION: 'TIMECONDITION';Make a time conditional request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html)
property TIMEOUT
readonly TIMEOUT: 'TIMEOUT';Timeout for the entire request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html)
property TIMEOUT_MS
readonly TIMEOUT_MS: 'TIMEOUT_MS';Millisecond timeout for the entire request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html)
property TIMEVALUE
readonly TIMEVALUE: 'TIMEVALUE';Time value for the time conditional request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html)
property TIMEVALUE_LARGE
readonly TIMEVALUE_LARGE: 'TIMEVALUE_LARGE';Time value for the time conditional request.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html)
property TLS13_CIPHERS
readonly TLS13_CIPHERS: 'TLS13_CIPHERS';TLS 1.3 cipher suites to use. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html)
property TLSAUTH_PASSWORD
readonly TLSAUTH_PASSWORD: 'TLSAUTH_PASSWORD';TLS authentication password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html)
property TLSAUTH_TYPE
readonly TLSAUTH_TYPE: 'TLSAUTH_TYPE';TLS authentication methods.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html)
property TLSAUTH_USERNAME
readonly TLSAUTH_USERNAME: 'TLSAUTH_USERNAME';TLS authentication username.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html)
property TRAILERFUNCTION
readonly TRAILERFUNCTION: 'TRAILERFUNCTION';Set callback for sending trailing headers.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html)
property TRANSFER_ENCODING
readonly TRANSFER_ENCODING: 'TRANSFER_ENCODING';Request Transfer-Encoding.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html)
property TRANSFERTEXT
readonly TRANSFERTEXT: 'TRANSFERTEXT';Use text transfer.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html)
property UNIX_SOCKET_PATH
readonly UNIX_SOCKET_PATH: 'UNIX_SOCKET_PATH';Path to a Unix domain socket.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html)
property UNRESTRICTED_AUTH
readonly UNRESTRICTED_AUTH: 'UNRESTRICTED_AUTH';Do not restrict authentication to original host.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html)
property UPKEEP_INTERVAL_MS
readonly UPKEEP_INTERVAL_MS: 'UPKEEP_INTERVAL_MS';Sets the interval at which connection upkeep are performed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html)
property UPLOAD
readonly UPLOAD: 'UPLOAD';Upload data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html)
property UPLOAD_BUFFERSIZE
readonly UPLOAD_BUFFERSIZE: 'UPLOAD_BUFFERSIZE';Set upload buffer size.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html)
property UPLOAD_FLAGS
readonly UPLOAD_FLAGS: 'UPLOAD_FLAGS';Set upload flags.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html)
property URL
readonly URL: 'URL';URL to work on.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_URL.html)
property USE_SSL
readonly USE_SSL: 'USE_SSL';Use TLS/SSL.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html](https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html)
property USERAGENT
readonly USERAGENT: 'USERAGENT';User-Agent: header.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html)
property USERNAME
readonly USERNAME: 'USERNAME';Username.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html)
property USERPWD
readonly USERPWD: 'USERPWD';Username and password.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html)
property VERBOSE
readonly VERBOSE: 'VERBOSE';Display verbose information.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html)
property WILDCARDMATCH
readonly WILDCARDMATCH: 'WILDCARDMATCH';Transfer multiple files according to a filename pattern.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html](https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html)
property WRITEFUNCTION
readonly WRITEFUNCTION: 'WRITEFUNCTION';Callback for writing data.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html)
property WS_OPTIONS
readonly WS_OPTIONS: 'WS_OPTIONS';Set WebSocket options.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html)
property XFERINFOFUNCTION
readonly XFERINFOFUNCTION: 'XFERINFOFUNCTION';Callback for progress meter.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html)
property XOAUTH2_BEARER
readonly XOAUTH2_BEARER: 'XOAUTH2_BEARER';OAuth2 bearer token. See
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html](https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html)
interface CurlVersionInfoNativeBindingObject
interface CurlVersionInfoNativeBindingObject {}This is the data returned on `Curl.getVersionInfo`.
It's basically the output of [
curl_version_info()](https://curl.haxx.se/libcurl/c/curl_version_info.html)
property aresVersion
aresVersion: string | null;cares human readable version string Will be null if libcurl was not built with cares
property aresVersionNumber
aresVersionNumber: number;cares version number Will be null if libcurl was not built with cares
property brotliVersion
brotliVersion: string | null;brotli human readable version string Will be null if libcurl was not built with brotli
property brotliVersionNumber
brotliVersionNumber: number;brotli version number Will be 0 if libcurl was not built with brotli
property features
features: string[];List of features supported. Example:
['AsynchDNS', 'IDN','IPv6', 'Largefile','SSPI', 'Kerberos','SPNEGO', 'NTLM','SSL', 'libz','HTTP2', 'HTTPS-proxy']
property iconvVersionNumber
iconvVersionNumber: number;iconv version number Will be 0 if libcurl was not built with iconv
property libidnVersion
libidnVersion: string | null;libidn human readable version string Will be null if libcurl was not built with libidn
property libsshVersion
libsshVersion: string | null;libssh human readable version string Will be null if libcurl was not built with libssh
property libzVersion
libzVersion: string;libz human readable version string
property protocols
protocols: string[];List of protocols supported. Example:
['dict', 'file', 'ftp','ftps', 'gopher', 'http','https', 'imap', 'imaps','ldap', 'ldaps', 'pop3','pop3s', 'rtsp', 'scp','sftp', 'smb', 'smbs','smtp', 'smtps', 'telnet','tftp']
property rawFeatures
rawFeatures: CurlVersion;Raw feature flags
property sslVersion
sslVersion: string;SSL library human readable version string
property sslVersionNum
sslVersionNum: 0;This is not used - Will always be 0
property version
version: string;Libcurl version. Example:
7.69.1-DEV
property versionNumber
versionNumber: number;Integer representation of libcurl version, created like this:
<8 bits major number> | <8 bits minor number> | <8 bits patch number>.Version
7.69.1is therefore returned as0x074501.
interface CurlWsFrame
interface CurlWsFrame {}WebSocket frame metadata
This structure contains information about a WebSocket frame received or being sent. It is returned by `Easy#wsMeta` when called from within a WRITEFUNCTION callback, or as part of the return value from `Easy#wsRecv`.
The naming convention of the fields is following libcurl's own naming convention.
Modifiers
@public
property age
age: number;The age of this struct. Always zero for now.
property bytesleft
bytesleft: number;If this is not a complete fragment, the bytesleft field informs about how many additional bytes are expected to arrive before this fragment is complete. If zero, the frame is complete.
property flags
flags: CurlWs;Bitmask describing the WebSocket frame. See `CurlWs` for flag values.
property len
len: number;The length of the current data chunk.
property offset
offset: number;When this chunk is a continuation of frame data already delivered, this is the offset into the final frame data where this piece belongs.
interface CurlyFunction
interface CurlyFunction extends HttpMethodCalls {}property create
create: (defaultOptions?: CurlyOptions) => CurlyFunction;**EXPERIMENTAL** This API can change between minor releases
This returns a new
curlywith the specified options set by default.
property defaultResponseBodyParsers
defaultResponseBodyParsers: CurlyResponseBodyParsersProperty;These are the default response body parsers to be used.
By default there are parsers for the following:
- application/json - text/* - *
property setObjectPoolLimit
setObjectPoolLimit: (limit: number) => void;Set the object pool limit for Curl instances.
When set to 0 (default), pooling is disabled and Curl instances are created/destroyed on each request. When set to a positive number, that many Curl instances will be pre-created and reused.
Parameter limit
Number of Curl instances to keep in the pool. 0 disables pooling.
call signature
<ResultData = any>(url: string, options?: CurlyOptions): Promise< CurlyResult<ResultData>>;**EXPERIMENTAL** This API can change between minor releases
Async wrapper around the Curl class.
It's also possible to request using a specific http verb directly by using
curl.<http-verb>(url: string, options?: CurlyOptions), like:curly.get('https://www.google.com')
interface CurlyHttpMethodCall
interface CurlyHttpMethodCall {}call signature
<ResultData = any>(url: string, options?: CurlyOptions): Promise< CurlyResult<ResultData>>;**EXPERIMENTAL** This API can change between minor releases
Async wrapper around the Curl class.
The
curly.<field>being used will be the HTTP verb sent.
interface CurlyOptions
interface CurlyOptions extends CurlOptionValueType {}These are the options accepted by the `CurlyFunction` API.
Most libcurl options are accepted as their specific name, like
PROXY_CAPATH, or as a camel case version of that name, likeproxyCaPath.Options specific to the
curlyAPI are prefixed withcurly, likecurlyBaseUrl.For quick navigation use the sidebar.
property curlyBaseUrl
curlyBaseUrl?: string;If set, this value will always prefix the
URLof the request.No special handling is done, so make sure you set the url correctly later on.
property curlyLowerCaseHeaders
curlyLowerCaseHeaders?: boolean;If
true,curlywill lower case all headers before returning then.By default this is
false.
property curlyMimePost
curlyMimePost?: CurlyMimePart[];Array of MIME parts to upload as multipart/form-data.
This will automatically build a CurlMime structure internally and set it using the
MIMEPOSToption. For stream-based parts, the unpause callback is automatically generated, so you don't need to provide it.Remarks
Requires libcurl 7.56.0 or later.
Example 1
Basic multipart upload:
await curly.post('https://httpbin.org/post', {curlyMimePost: [{ type: 'data', name: 'username', data: 'john_doe' },{ type: 'file', name: 'avatar', file: '/path/to/image.png', mimeType: 'image/png' }]})Example 2
With streams:
import { createReadStream } from 'fs'await curly.post('https://httpbin.org/post', {curlyMimePost: [{ type: 'data', name: 'field', data: 'value' },{type: 'stream',name: 'document',stream: createReadStream('/path/to/file.txt'),size: 12345}]})See `Easy.setMimePost` for more details.
property curlyProgressCallback
curlyProgressCallback?: CurlOptionValueType['xferInfoFunction'];Set this to a callback function that should be used as the progress callback.
This is the only reliable way to set the progress callback.
Remarks
This basically calls one of the following methods, depending on if any of the streams feature is being used or not: - If using streams: `Curl#setStreamProgressCallback` - else: `Curl#setProgressCallback`
property curlyResponseBodyParser
curlyResponseBodyParser?: CurlyResponseBodyParser | false;If set to a function this will always be called for all requests, ignoring other response body parsers.
This can also be set to
false, which will disable the response parsing and will make the rawBufferof the response to be returned.
property curlyResponseBodyParsers
curlyResponseBodyParsers?: CurlyResponseBodyParsersProperty;Add more response body parsers, or overwrite existing ones.
This object is merged with the `curly.defaultResponseBodyParsers`
property curlyStreamResponse
curlyStreamResponse?: boolean;If
true,curlywill return the response data as a stream.The
curlycall will resolve as soon as the stream is available.When using this option, if an error is thrown in the internal `Curl` instance after the
curlycall has been resolved (it resolves as soon as the stream is available) it will cause theerrorevent to be emitted on the stream itself, this way it's possible to handle these too, if necessary. The error object will inherit from the `CurlError` class.Calling
destroy()on the stream will always cause theCurlinstance to emit the error event. Even if an error argument was not supplied tostream.destroy().By default this is
false.Remarks
Make sure your libcurl version is greater than or equal 7.69.1. Versions older than that one are not reliable for streams usage.
This basically enables the `CurlFeature.StreamResponse` feature flag in the internal `Curl` instance.
property curlyStreamResponseHighWaterMark
curlyStreamResponseHighWaterMark?: number;This will set the
highWaterMarkoption in the response stream, ifcurlyStreamResponseistrue.Remarks
This basically calls `Curl#setStreamResponseHighWaterMark` method in the internal `Curl` instance.
property curlyStreamUpload
curlyStreamUpload?: Readable | null;If set, the contents of this stream will be uploaded to the server.
Keep in mind that if you set this option you **SHOULD** not set
progressFunctionorxferInfoFunction, as these are used internally.If you need to set a progress callback, use the
curlyProgressCallbackoption.If the stream set here is destroyed before libcurl finishes uploading it, the error
Curl upload stream was unexpectedly destroyed(Code42) will be emitted in the internal `Curl` instance, and so will cause the curly call to be rejected with that error.If the stream was destroyed with a specific error, this error will be passed instead.
By default this is not set.
Remarks
Make sure your libcurl version is greater than or equal 7.69.1. Versions older than that one are not reliable for streams usage.
This basically calls `Curl#setUploadStream` method in the internal `Curl` instance.
interface CurlyResult
interface CurlyResult<ResultData = any> {}Object the curly call resolves to.
Modifiers
@public
property data
data: ResultData;Data will be the body of the requested URL
property headers
headers: HeaderInfo[];Parsed headers
See HeaderInfo
property statusCode
statusCode: number;HTTP Status code for the last request
interface GetInfoReturn
interface GetInfoReturn<DataType = number | string | null> {}interface Http2PushFrameHeaders
interface Http2PushFrameHeaders {}This is the type of the argument passed to the first parameter of
Modifiers
@public
property numberOfHeaders
numberOfHeaders: number;method getByIndex
getByIndex: (index: number) => string | null;method getByName
getByName: (name: string) => string | null;interface MimeDataCallbacks
interface MimeDataCallbacks {}Type definition for MIME data callback functions.
Modifiers
@public
property free
free?: () => void;Optional cleanup callback called when the part is freed.
Example 1
free: () => {console.log('Cleaning up resources')}
property read
read: (size: number) => Buffer | string | null | CurlReadFunc;Read callback to provide data chunks.
Parameter size
Maximum number of bytes to read
Returns
Buffer, string, null for EOF, or CurlReadFunc value (Pause/Abort)
Remarks
When
CurlReadFunc.Pauseis returned, the transfer will be paused until it is explicitly resumed by callinghandle.pause(handle.pauseFlags & ~CurlPause.Recv). WhenCurlReadFunc.Abortis returned, the transfer will be aborted.Example 1
read: (size) => {if (offset >= data.length) return null // EOFconst chunk = data.slice(offset, offset + size)offset += chunk.lengthreturn chunk}
property seek
seek?: (offset: number, origin: number) => boolean;Optional seek callback for repositioning the data stream.
Parameter offset
The offset to seek to
Parameter origin
Seek origin: 0=SEEK_SET, 1=SEEK_CUR, 2=SEEK_END
Returns
trueif seek succeeded,falseotherwiseExample 1
seek: (offset, origin) => {if (origin === 0) { // SEEK_SETcurrentOffset = offsetreturn true}return false // Other origins not supported}
interface MultiOption
interface MultiOption {}Modifiers
@public
property CHUNK_LENGTH_PENALTY_SIZE
readonly CHUNK_LENGTH_PENALTY_SIZE: 'CHUNK_LENGTH_PENALTY_SIZE';deprecated
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.html](https://curl.haxx.se/libcurl/c/CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE.html)
property CONTENT_LENGTH_PENALTY_SIZE
readonly CONTENT_LENGTH_PENALTY_SIZE: 'CONTENT_LENGTH_PENALTY_SIZE';deprecated
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.html](https://curl.haxx.se/libcurl/c/CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE.html)
property MAX_CONCURRENT_STREAMS
readonly MAX_CONCURRENT_STREAMS: 'MAX_CONCURRENT_STREAMS';Max concurrent streams for http2.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_CONCURRENT_STREAMS.html)
property MAX_HOST_CONNECTIONS
readonly MAX_HOST_CONNECTIONS: 'MAX_HOST_CONNECTIONS';Max number of connections to a single host.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_HOST_CONNECTIONS.html)
property MAX_PIPELINE_LENGTH
readonly MAX_PIPELINE_LENGTH: 'MAX_PIPELINE_LENGTH';deprecated.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_PIPELINE_LENGTH.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_PIPELINE_LENGTH.html)
property MAX_TOTAL_CONNECTIONS
readonly MAX_TOTAL_CONNECTIONS: 'MAX_TOTAL_CONNECTIONS';Max simultaneously open connections.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAX_TOTAL_CONNECTIONS.html)
property MAXCONNECTS
readonly MAXCONNECTS: 'MAXCONNECTS';Size of connection cache.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_MAXCONNECTS.html](https://curl.haxx.se/libcurl/c/CURLMOPT_MAXCONNECTS.html)
property NETWORK_CHANGED
readonly NETWORK_CHANGED: 'NETWORK_CHANGED';Signal that the network has changed.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_NETWORK_CHANGED.html](https://curl.haxx.se/libcurl/c/CURLMOPT_NETWORK_CHANGED.html)
property PUSHFUNCTION
readonly PUSHFUNCTION: 'PUSHFUNCTION';Callback that approves or denies server pushes.
Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLMOPT_PUSHFUNCTION.html)
Enums
enum CurlAuth
enum CurlAuth { None = 0, Basic = 1, Digest = 2, Negotiate = 4, GssNegotiate = 4, GssApi = 4, Ntlm = 8, DigestIe = 16, NtlmWb = 32, Bearer = 64, AwsSigV4 = 128, Only = 2147483648, Any = -17, AnySafe = -18,}Object with bitmasks that should be used with the
HTTPAUTHandPROXYAUTHoptions.CURLAUTH_BASICbecomesCurlAuth.Basic**NOTE:** The option
Only(CURLAUTH_ONLY) cannot be safely used on bitwise operations, because it represents a integer larger than 32 bits, if you need to use it, you must do the bitwise operation without using the operators.See following StackOverflow questions for more info: https://stackoverflow.com/q/39660274/710693 https://stackoverflow.com/q/3637702/710693
Modifiers
@public
member Any
Any = -17member AnySafe
AnySafe = -18member AwsSigV4
AwsSigV4 = 128member Basic
Basic = 1member Bearer
Bearer = 64member Digest
Digest = 2member DigestIe
DigestIe = 16member GssApi
GssApi = 4Used for option
SOCKS5_AUTHto stay terminologically correct
member GssNegotiate
GssNegotiate = 4Deprecated since the advent of Negotiate
member Negotiate
Negotiate = 4member None
None = 0member Ntlm
Ntlm = 8member NtlmWb
NtlmWb = 32member Only
Only = 2147483648enum CurlChunk
enum CurlChunk { BgnFuncOk = 0, BgnFuncFail = 1, BgnFuncSkip = 2, EndFuncOk = 0, EndFuncFail = 1,}Object to be used as the return value for the callbacks set with the options
CHUNK_BGN_FUNCTIONandCHUNK_END_FUNCTION.CURL_CHUNK_BGN_FUNC_OKbecomesCurlChunk.BgnFuncOkModifiers
@public
member BgnFuncFail
BgnFuncFail = 1member BgnFuncOk
BgnFuncOk = 0member BgnFuncSkip
BgnFuncSkip = 2member EndFuncFail
EndFuncFail = 1member EndFuncOk
EndFuncOk = 0enum CurlCode
enum CurlCode { CURLE_OK = 0, CURLE_UNSUPPORTED_PROTOCOL = 1, CURLE_FAILED_INIT = 2, CURLE_URL_MALFORMAT = 3, CURLE_NOT_BUILT_IN = 4, CURLE_COULDNT_RESOLVE_PROXY = 5, CURLE_COULDNT_RESOLVE_HOST = 6, CURLE_COULDNT_CONNECT = 7, CURLE_WEIRD_SERVER_REPLY = 8, CURLE_REMOTE_ACCESS_DENIED = 9, CURLE_FTP_ACCEPT_FAILED = 10, CURLE_FTP_WEIRD_PASS_REPLY = 11, CURLE_FTP_ACCEPT_TIMEOUT = 12, CURLE_FTP_WEIRD_PASV_REPLY = 13, CURLE_FTP_WEIRD_227_FORMAT = 14, CURLE_FTP_CANT_GET_HOST = 15, CURLE_HTTP2 = 16, CURLE_FTP_COULDNT_SET_TYPE = 17, CURLE_PARTIAL_FILE = 18, CURLE_FTP_COULDNT_RETR_FILE = 19, CURLE_OBSOLETE20 = 20, CURLE_QUOTE_ERROR = 21, CURLE_HTTP_RETURNED_ERROR = 22, CURLE_WRITE_ERROR = 23, CURLE_OBSOLETE24 = 24, CURLE_UPLOAD_FAILED = 25, CURLE_READ_ERROR = 26, CURLE_OUT_OF_MEMORY = 27, CURLE_OPERATION_TIMEDOUT = 28, CURLE_OBSOLETE29 = 29, CURLE_FTP_PORT_FAILED = 30, CURLE_FTP_COULDNT_USE_REST = 31, CURLE_OBSOLETE32 = 32, CURLE_RANGE_ERROR = 33, CURLE_HTTP_POST_ERROR = 34, CURLE_SSL_CONNECT_ERROR = 35, CURLE_BAD_DOWNLOAD_RESUME = 36, CURLE_FILE_COULDNT_READ_FILE = 37, CURLE_LDAP_CANNOT_BIND = 38, CURLE_LDAP_SEARCH_FAILED = 39, CURLE_OBSOLETE40 = 40, CURLE_FUNCTION_NOT_FOUND = 41, CURLE_ABORTED_BY_CALLBACK = 42, CURLE_BAD_FUNCTION_ARGUMENT = 43, CURLE_OBSOLETE44 = 44, CURLE_INTERFACE_FAILED = 45, CURLE_OBSOLETE46 = 46, CURLE_TOO_MANY_REDIRECTS = 47, CURLE_UNKNOWN_OPTION = 48, CURLE_SETOPT_OPTION_SYNTAX = 49, CURLE_OBSOLETE50 = 50, CURLE_OBSOLETE51 = 51, CURLE_GOT_NOTHING = 52, CURLE_SSL_ENGINE_NOTFOUND = 53, CURLE_SSL_ENGINE_SETFAILED = 54, CURLE_SEND_ERROR = 55, CURLE_RECV_ERROR = 56, CURLE_OBSOLETE57 = 57, CURLE_SSL_CERTPROBLEM = 58, CURLE_SSL_CIPHER = 59, CURLE_PEER_FAILED_VERIFICATION = 60, CURLE_BAD_CONTENT_ENCODING = 61, CURLE_LDAP_INVALID_URL = 62, CURLE_FILESIZE_EXCEEDED = 63, CURLE_USE_SSL_FAILED = 64, CURLE_SEND_FAIL_REWIND = 65, CURLE_SSL_ENGINE_INITFAILED = 66, CURLE_LOGIN_DENIED = 67, CURLE_TFTP_NOTFOUND = 68, CURLE_TFTP_PERM = 69, CURLE_REMOTE_DISK_FULL = 70, CURLE_TFTP_ILLEGAL = 71, CURLE_TFTP_UNKNOWNID = 72, CURLE_REMOTE_FILE_EXISTS = 73, CURLE_TFTP_NOSUCHUSER = 74, CURLE_CONV_FAILED = 75, CURLE_CONV_REQD = 76, CURLE_SSL_CACERT_BADFILE = 77, CURLE_REMOTE_FILE_NOT_FOUND = 78, CURLE_SSH = 79, CURLE_SSL_SHUTDOWN_FAILED = 80, CURLE_AGAIN = 81, CURLE_SSL_CRL_BADFILE = 82, CURLE_SSL_ISSUER_ERROR = 83, CURLE_FTP_PRET_FAILED = 84, CURLE_RTSP_CSEQ_ERROR = 85, CURLE_RTSP_SESSION_ERROR = 86, CURLE_FTP_BAD_FILE_LIST = 87, CURLE_CHUNK_FAILED = 88, CURLE_NO_CONNECTION_AVAILABLE = 89, CURLE_SSL_PINNEDPUBKEYNOTMATCH = 90, CURLE_SSL_INVALIDCERTSTATUS = 91, CURLE_HTTP2_STREAM = 92, CURLE_RECURSIVE_API_CALL = 93, CURLE_AUTH_ERROR = 94, CURLE_HTTP3 = 95, CURLE_QUIC_CONNECT_ERROR = 96, CURLE_PROXY = 97, CURLE_SSL_CLIENTCERT = 98, CURLE_UNRECOVERABLE_POLL = 99, CURLE_TOO_LARGE = 100, CURLE_ECH_REQUIRED = 101, CURLE_LAST = 102, CURLE_FTP_WEIRD_SERVER_REPLY = 8, CURLE_SSL_CACERT = 60, CURLE_UNKNOWN_TELNET_OPTION = 48, CURLE_SSL_PEER_CERTIFICATE = 60, CURLE_TELNET_OPTION_SYNTAX = 49, CURLE_FTP_ACCESS_DENIED = 9, CURLE_FTP_COULDNT_SET_BINARY = 17, CURLE_FTP_QUOTE_ERROR = 21, CURLE_TFTP_DISKFULL = 70, CURLE_TFTP_EXISTS = 73, CURLE_HTTP_RANGE_ERROR = 33, CURLE_FTP_SSL_FAILED = 64, CURLE_OPERATION_TIMEOUTED = 28, CURLE_HTTP_NOT_FOUND = 22, CURLE_HTTP_PORT_FAILED = 45, CURLE_FTP_COULDNT_STOR_FILE = 25, CURLE_FTP_PARTIAL_FILE = 18, CURLE_FTP_BAD_DOWNLOAD_RESUME = 36,}Modifiers
@public
member CURLE_ABORTED_BY_CALLBACK
CURLE_ABORTED_BY_CALLBACK = 42member CURLE_AGAIN
CURLE_AGAIN = 81member CURLE_AUTH_ERROR
CURLE_AUTH_ERROR = 94member CURLE_BAD_CONTENT_ENCODING
CURLE_BAD_CONTENT_ENCODING = 61member CURLE_BAD_DOWNLOAD_RESUME
CURLE_BAD_DOWNLOAD_RESUME = 36member CURLE_BAD_FUNCTION_ARGUMENT
CURLE_BAD_FUNCTION_ARGUMENT = 43member CURLE_CHUNK_FAILED
CURLE_CHUNK_FAILED = 88member CURLE_CONV_FAILED
CURLE_CONV_FAILED = 75member CURLE_CONV_REQD
CURLE_CONV_REQD = 76member CURLE_COULDNT_CONNECT
CURLE_COULDNT_CONNECT = 7member CURLE_COULDNT_RESOLVE_HOST
CURLE_COULDNT_RESOLVE_HOST = 6member CURLE_COULDNT_RESOLVE_PROXY
CURLE_COULDNT_RESOLVE_PROXY = 5member CURLE_ECH_REQUIRED
CURLE_ECH_REQUIRED = 101member CURLE_FAILED_INIT
CURLE_FAILED_INIT = 2member CURLE_FILE_COULDNT_READ_FILE
CURLE_FILE_COULDNT_READ_FILE = 37member CURLE_FILESIZE_EXCEEDED
CURLE_FILESIZE_EXCEEDED = 63member CURLE_FTP_ACCEPT_FAILED
CURLE_FTP_ACCEPT_FAILED = 10member CURLE_FTP_ACCEPT_TIMEOUT
CURLE_FTP_ACCEPT_TIMEOUT = 12member CURLE_FTP_ACCESS_DENIED
CURLE_FTP_ACCESS_DENIED = 9member CURLE_FTP_BAD_DOWNLOAD_RESUME
CURLE_FTP_BAD_DOWNLOAD_RESUME = 36member CURLE_FTP_BAD_FILE_LIST
CURLE_FTP_BAD_FILE_LIST = 87member CURLE_FTP_CANT_GET_HOST
CURLE_FTP_CANT_GET_HOST = 15member CURLE_FTP_COULDNT_RETR_FILE
CURLE_FTP_COULDNT_RETR_FILE = 19member CURLE_FTP_COULDNT_SET_BINARY
CURLE_FTP_COULDNT_SET_BINARY = 17member CURLE_FTP_COULDNT_SET_TYPE
CURLE_FTP_COULDNT_SET_TYPE = 17member CURLE_FTP_COULDNT_STOR_FILE
CURLE_FTP_COULDNT_STOR_FILE = 25member CURLE_FTP_COULDNT_USE_REST
CURLE_FTP_COULDNT_USE_REST = 31member CURLE_FTP_PARTIAL_FILE
CURLE_FTP_PARTIAL_FILE = 18member CURLE_FTP_PORT_FAILED
CURLE_FTP_PORT_FAILED = 30member CURLE_FTP_PRET_FAILED
CURLE_FTP_PRET_FAILED = 84member CURLE_FTP_QUOTE_ERROR
CURLE_FTP_QUOTE_ERROR = 21member CURLE_FTP_SSL_FAILED
CURLE_FTP_SSL_FAILED = 64member CURLE_FTP_WEIRD_227_FORMAT
CURLE_FTP_WEIRD_227_FORMAT = 14member CURLE_FTP_WEIRD_PASS_REPLY
CURLE_FTP_WEIRD_PASS_REPLY = 11member CURLE_FTP_WEIRD_PASV_REPLY
CURLE_FTP_WEIRD_PASV_REPLY = 13member CURLE_FTP_WEIRD_SERVER_REPLY
CURLE_FTP_WEIRD_SERVER_REPLY = 8member CURLE_FUNCTION_NOT_FOUND
CURLE_FUNCTION_NOT_FOUND = 41member CURLE_GOT_NOTHING
CURLE_GOT_NOTHING = 52member CURLE_HTTP_NOT_FOUND
CURLE_HTTP_NOT_FOUND = 22member CURLE_HTTP_PORT_FAILED
CURLE_HTTP_PORT_FAILED = 45member CURLE_HTTP_POST_ERROR
CURLE_HTTP_POST_ERROR = 34member CURLE_HTTP_RANGE_ERROR
CURLE_HTTP_RANGE_ERROR = 33member CURLE_HTTP_RETURNED_ERROR
CURLE_HTTP_RETURNED_ERROR = 22member CURLE_HTTP2
CURLE_HTTP2 = 16member CURLE_HTTP2_STREAM
CURLE_HTTP2_STREAM = 92member CURLE_HTTP3
CURLE_HTTP3 = 95member CURLE_INTERFACE_FAILED
CURLE_INTERFACE_FAILED = 45member CURLE_LAST
CURLE_LAST = 102member CURLE_LDAP_CANNOT_BIND
CURLE_LDAP_CANNOT_BIND = 38member CURLE_LDAP_INVALID_URL
CURLE_LDAP_INVALID_URL = 62member CURLE_LDAP_SEARCH_FAILED
CURLE_LDAP_SEARCH_FAILED = 39member CURLE_LOGIN_DENIED
CURLE_LOGIN_DENIED = 67member CURLE_NO_CONNECTION_AVAILABLE
CURLE_NO_CONNECTION_AVAILABLE = 89member CURLE_NOT_BUILT_IN
CURLE_NOT_BUILT_IN = 4member CURLE_OBSOLETE20
CURLE_OBSOLETE20 = 20member CURLE_OBSOLETE24
CURLE_OBSOLETE24 = 24member CURLE_OBSOLETE29
CURLE_OBSOLETE29 = 29member CURLE_OBSOLETE32
CURLE_OBSOLETE32 = 32member CURLE_OBSOLETE40
CURLE_OBSOLETE40 = 40member CURLE_OBSOLETE44
CURLE_OBSOLETE44 = 44member CURLE_OBSOLETE46
CURLE_OBSOLETE46 = 46member CURLE_OBSOLETE50
CURLE_OBSOLETE50 = 50member CURLE_OBSOLETE51
CURLE_OBSOLETE51 = 51member CURLE_OBSOLETE57
CURLE_OBSOLETE57 = 57member CURLE_OK
CURLE_OK = 0member CURLE_OPERATION_TIMEDOUT
CURLE_OPERATION_TIMEDOUT = 28member CURLE_OPERATION_TIMEOUTED
CURLE_OPERATION_TIMEOUTED = 28member CURLE_OUT_OF_MEMORY
CURLE_OUT_OF_MEMORY = 27member CURLE_PARTIAL_FILE
CURLE_PARTIAL_FILE = 18member CURLE_PEER_FAILED_VERIFICATION
CURLE_PEER_FAILED_VERIFICATION = 60member CURLE_PROXY
CURLE_PROXY = 97member CURLE_QUIC_CONNECT_ERROR
CURLE_QUIC_CONNECT_ERROR = 96member CURLE_QUOTE_ERROR
CURLE_QUOTE_ERROR = 21member CURLE_RANGE_ERROR
CURLE_RANGE_ERROR = 33member CURLE_READ_ERROR
CURLE_READ_ERROR = 26member CURLE_RECURSIVE_API_CALL
CURLE_RECURSIVE_API_CALL = 93member CURLE_RECV_ERROR
CURLE_RECV_ERROR = 56member CURLE_REMOTE_ACCESS_DENIED
CURLE_REMOTE_ACCESS_DENIED = 9member CURLE_REMOTE_DISK_FULL
CURLE_REMOTE_DISK_FULL = 70member CURLE_REMOTE_FILE_EXISTS
CURLE_REMOTE_FILE_EXISTS = 73member CURLE_REMOTE_FILE_NOT_FOUND
CURLE_REMOTE_FILE_NOT_FOUND = 78member CURLE_RTSP_CSEQ_ERROR
CURLE_RTSP_CSEQ_ERROR = 85member CURLE_RTSP_SESSION_ERROR
CURLE_RTSP_SESSION_ERROR = 86member CURLE_SEND_ERROR
CURLE_SEND_ERROR = 55member CURLE_SEND_FAIL_REWIND
CURLE_SEND_FAIL_REWIND = 65member CURLE_SETOPT_OPTION_SYNTAX
CURLE_SETOPT_OPTION_SYNTAX = 49member CURLE_SSH
CURLE_SSH = 79member CURLE_SSL_CACERT
CURLE_SSL_CACERT = 60member CURLE_SSL_CACERT_BADFILE
CURLE_SSL_CACERT_BADFILE = 77member CURLE_SSL_CERTPROBLEM
CURLE_SSL_CERTPROBLEM = 58member CURLE_SSL_CIPHER
CURLE_SSL_CIPHER = 59member CURLE_SSL_CLIENTCERT
CURLE_SSL_CLIENTCERT = 98member CURLE_SSL_CONNECT_ERROR
CURLE_SSL_CONNECT_ERROR = 35member CURLE_SSL_CRL_BADFILE
CURLE_SSL_CRL_BADFILE = 82member CURLE_SSL_ENGINE_INITFAILED
CURLE_SSL_ENGINE_INITFAILED = 66member CURLE_SSL_ENGINE_NOTFOUND
CURLE_SSL_ENGINE_NOTFOUND = 53member CURLE_SSL_ENGINE_SETFAILED
CURLE_SSL_ENGINE_SETFAILED = 54member CURLE_SSL_INVALIDCERTSTATUS
CURLE_SSL_INVALIDCERTSTATUS = 91member CURLE_SSL_ISSUER_ERROR
CURLE_SSL_ISSUER_ERROR = 83member CURLE_SSL_PEER_CERTIFICATE
CURLE_SSL_PEER_CERTIFICATE = 60member CURLE_SSL_PINNEDPUBKEYNOTMATCH
CURLE_SSL_PINNEDPUBKEYNOTMATCH = 90member CURLE_SSL_SHUTDOWN_FAILED
CURLE_SSL_SHUTDOWN_FAILED = 80member CURLE_TELNET_OPTION_SYNTAX
CURLE_TELNET_OPTION_SYNTAX = 49member CURLE_TFTP_DISKFULL
CURLE_TFTP_DISKFULL = 70member CURLE_TFTP_EXISTS
CURLE_TFTP_EXISTS = 73member CURLE_TFTP_ILLEGAL
CURLE_TFTP_ILLEGAL = 71member CURLE_TFTP_NOSUCHUSER
CURLE_TFTP_NOSUCHUSER = 74member CURLE_TFTP_NOTFOUND
CURLE_TFTP_NOTFOUND = 68member CURLE_TFTP_PERM
CURLE_TFTP_PERM = 69member CURLE_TFTP_UNKNOWNID
CURLE_TFTP_UNKNOWNID = 72member CURLE_TOO_LARGE
CURLE_TOO_LARGE = 100member CURLE_TOO_MANY_REDIRECTS
CURLE_TOO_MANY_REDIRECTS = 47member CURLE_UNKNOWN_OPTION
CURLE_UNKNOWN_OPTION = 48member CURLE_UNKNOWN_TELNET_OPTION
CURLE_UNKNOWN_TELNET_OPTION = 48member CURLE_UNRECOVERABLE_POLL
CURLE_UNRECOVERABLE_POLL = 99member CURLE_UNSUPPORTED_PROTOCOL
CURLE_UNSUPPORTED_PROTOCOL = 1member CURLE_UPLOAD_FAILED
CURLE_UPLOAD_FAILED = 25member CURLE_URL_MALFORMAT
CURLE_URL_MALFORMAT = 3member CURLE_USE_SSL_FAILED
CURLE_USE_SSL_FAILED = 64member CURLE_WEIRD_SERVER_REPLY
CURLE_WEIRD_SERVER_REPLY = 8member CURLE_WRITE_ERROR
CURLE_WRITE_ERROR = 23enum CurlFeature
enum CurlFeature { Empty = 0, NoDataParsing = 1, NoHeaderParsing = 2, Raw = 3, NoDataStorage = 4, NoHeaderStorage = 8, NoStorage = 12, StreamResponse = 16,}Flags to be used with `Curl#enable` and `Curl#disable`
Modifiers
@public
member Empty
Empty = 0Initial state
member NoDataParsing
NoDataParsing = 1Data received is passed as a Buffer to the end event.
member NoDataStorage
NoDataStorage = 4Data received is not stored inside this handle, implies
NoDataParsing.
member NoHeaderParsing
NoHeaderParsing = 2Header received is not parsed, it's passed as a Buffer to the end event.
member NoHeaderStorage
NoHeaderStorage = 8Header received is not stored inside this handle, implies
NoHeaderParsing.
member NoStorage
NoStorage = 12Same than
NoDataStorage | NoHeaderStorage, impliesRaw.
member Raw
Raw = 3Same than
NoDataParsing | NoHeaderParsing
member StreamResponse
StreamResponse = 16This will change the behavior of the internal
WRITEFUNCTIONto push data into a stream instead of buffering all the data into multipleBufferchunks.As soon as the stream is available, it will be passed as the first argument for the
streamevent.Example usage:
const curl = new Curl()curl.setOpt('URL', 'https://some-domain/upload')curl.setStreamProgressCallback(() => {// this will use the default progress callback from libcurlreturn CurlProgressFunc.Continue})curl.on('end', (statusCode, data) => {console.log('\n'.repeat(5))console.log(`curl - end - status: ${statusCode} - data length: ${data.length}`,)curl.close()})curl.on('error', (error, errorCode) => {console.log('\n'.repeat(5))console.error('curl - error: ', error, errorCode)curl.close()})curl.on('stream', async (stream, _statusCode, _headers) => {const writableStream = fs.createWriteStream('./test.out')stream.pipe(writableStream)})curl.perform()Using this implies
NoDataStorage.To control the
highWaterMarkoption of the response stream, see `Curl#setStreamResponseHighWaterMark`Remarks
Make sure your libcurl version is greater than or equal 7.69.1. Versions older than that one are not reliable for streams usage.
enum CurlFileType
enum CurlFileType { File = 0, Directory = 1, Symlink = 2, DeviceBlock = 3, DeviceChar = 4, NamedPipe = 5, Socket = 6, Door = 7,}Object with constants on the `FileInfo` object, used alongside the
CHUNK_BGN_FUNCTIONoptionCURLFILETYPE_DEVICE_BLOCKbecomesCurlFileType.DeviceBlockModifiers
@public
member DeviceBlock
DeviceBlock = 3member DeviceChar
DeviceChar = 4member Directory
Directory = 1member Door
Door = 7member File
File = 0member NamedPipe
NamedPipe = 5member Socket
Socket = 6member Symlink
Symlink = 2enum CurlFnMatchFunc
enum CurlFnMatchFunc { Match = 0, NoMatch = 1, Fail = 2,}Object to be used as the return value for the callback set with the option
FNMATCH_FUNCTIONCURL_FNMATCHFUNC_MATCHbecomesCurlFnMatch.MatchModifiers
@public
enum CurlFollow
enum CurlFollow { All = 1, ObeyCode = 2, FirstOnly = 3,}Object with constants for option bits for
CURLOPT_FOLLOWLOCATIONCURLFOLLOW_ALLbecomesCurlFollow.AllModifiers
@public
enum CurlFtpAuth
enum CurlFtpAuth { Default = 0, Ssl = 1, Tls = 2,}Object with constants for option
FTPSSLAUTHCURLFTPAUTH_DEFAULTbecomesCurlFtpAuth.DefaultModifiers
@public
enum CurlFtpMethod
enum CurlFtpMethod { DEFAULT = 0, MULTICWD = 1, NOCWD = 2, SINGLECWD = 3,}Object with constants for option
FTP_FILEMETHODCURLFTPMETHOD_MULTICWDbecomesCurlFtpMethod.MULTICWDThis is not following the PascalCase naming format because of a mistake. To not cause a breaking change it will stay this way until the next major version bump.
Modifiers
@public
enum CurlFtpSsl
enum CurlFtpSsl { CccNone = 0, CccPassive = 1, CccActive = 2,}Object with constants for option
FTP_SSL_CCCCURLFTPSSL_CCC_NONEbecomesCurlFtpSsl.CccNoneModifiers
@public
member CccActive
CccActive = 2Initiate the shutdown
member CccNone
CccNone = 0do not send CCC
member CccPassive
CccPassive = 1Let the server initiate the shutdown
enum CurlGlobalInit
const enum CurlGlobalInit { Nothing = 0, Ssl = 1, Win32 = 2, All = 3, Default = 3, AckEintr = 4,}Modifiers
@public
Deprecated
This will be removed in the next major version.
enum CurlGssApi
enum CurlGssApi { None = 0, PolicyFlag = 1, DelegationFlag = 2,}Object with constants for option
GSSAPI_DELEGATIONCURLGSSAPI_DELEGATION_FLAGbecomesCurlGssApi.DelegationFlagModifiers
@public
member DelegationFlag
DelegationFlag = 2delegate always
member None
None = 0None, default
member PolicyFlag
PolicyFlag = 1if permitted by policy
enum CurlHeader
enum CurlHeader { Unified = 0, Separate = 1,}Object with bitmasks to be used with
HEADEROPT.Available since libcurl version >= 7.37.0
CURLHEADER_UNIFIEDbecomesCurlHeader.UnifiedModifiers
@public
enum CurlHsts
enum CurlHsts { Disabled = 0, Enable = 1, ReadonlyFile = 2,}Object with bitmasks that should be used with the
HSTS_CTRLoption.CURLAUTH_BASICbecomesCurlAuth.BasicModifiers
@public
member Disabled
Disabled = 0Disable the in-memory HSTS cache for this handle.
member Enable
Enable = 1Enable the in-memory HSTS cache for this handle.
member ReadonlyFile
ReadonlyFile = 2Make the HSTS file (if specified) read-only - makes libcurl not save the cache to the file when closing the handle.
enum CurlHstsCallback
enum CurlHstsCallback { Ok = 0, Done = 1, Fail = 2,}Object with constants to be used as the return value for the callbacks set for options
HSTSWRITEFUNCTIONandHSTSREADFUNCTION.CURLSTS_OKbecomesCurlHstsCallback.OkModifiers
@public
enum CurlHttpVersion
enum CurlHttpVersion { None = 0, V1_0 = 1, V1_1 = 2, V2_0 = 3, V2Tls = 4, V2PriorKnowledge = 5, v3 = 30, V3Only = 31,}Object with constants to be used with the
HTTP_VERSIONoption.CURL_HTTP_VERSION_NONEbecomesCurlHttpVersion.NoneandCURL_HTTP_VERSION_1_0becomesCurlHttpVersion.V1_0Modifiers
@public
member None
None = 0Setting this means we don't care, and that we'd like the library to choose the best possible for us!
member V1_0
V1_0 = 1member V1_1
V1_1 = 2member V2_0
V2_0 = 3member V2PriorKnowledge
V2PriorKnowledge = 5Use HTTP 2 without HTTP/1.1 Upgrade
member V2Tls
V2Tls = 4Use version 2 for HTTPS, version 1.1 for HTTP
member v3
v3 = 30member V3Only
V3Only = 31enum CurlInfoDebug
enum CurlInfoDebug { Text = 0, HeaderIn = 1, HeaderOut = 2, DataIn = 3, DataOut = 4, SslDataIn = 5, SslDataOut = 6,}When the option
DEBUGFUNCTIONis set, the first argument to the callback will be one of these.CURLINFO_SSL_DATA_INbecomesCurlInfoDebug.SslDataOutModifiers
@public
enum CurlIpResolve
enum CurlIpResolve { Whatever = 0, V4 = 1, V6 = 2,}Object with constants for option
IPRESOLVECURL_IPRESOLVE_V4becomesCurl.ipresolve.V4Modifiers
@public
enum CurlMimeOpt
enum CurlMimeOpt { FormEscape = 1,}MIME option flags for use with CURLOPT_MIME_OPTIONS
These flags control how MIME structures and multipart form data are encoded.
CURLMIMEOPT_FORMESCAPEbecomesCurlMimeOpt.FormEscapeModifiers
@public
member FormEscape
FormEscape = 1Tells libcurl to escape multipart form field and filenames using the backslash-escaping algorithm rather than percent-encoding (HTTP only).
Backslash-escaping consists in preceding backslashes and double quotes with a backslash. Percent encoding maps all occurrences of double quote, carriage return and line feed to %22, %0D and %0A respectively.
Before libcurl 7.81.0, percent-encoding was never applied.
HTTP browsers used to do backslash-escaping in the past but have over time transitioned to use percent-encoding. This option allows one to address server-side applications that have not yet been converted.
As an example, consider field or filename
strangename"kind. When the containing multipart form is sent, this is normally transmitted asstrangename%22kind. When this option is set, it is sent asstrangename\"kind.Available since libcurl 7.81.0.
enum CurlMultiCode
enum CurlMultiCode { CURLM_CALL_MULTI_PERFORM = -1, CURLM_OK = 0, CURLM_BAD_HANDLE = 1, CURLM_BAD_EASY_HANDLE = 2, CURLM_OUT_OF_MEMORY = 3, CURLM_INTERNAL_ERROR = 4, CURLM_BAD_SOCKET = 5, CURLM_UNKNOWN_OPTION = 6, CURLM_ADDED_ALREADY = 7, CURLM_RECURSIVE_API_CALL = 8, CURLM_WAKEUP_FAILURE = 9, CURLM_BAD_FUNCTION_ARGUMENT = 10, CURLM_LAST = 11, CURLM_CALL_MULTI_SOCKET = -1,}Modifiers
@public
member CURLM_ADDED_ALREADY
CURLM_ADDED_ALREADY = 7member CURLM_BAD_EASY_HANDLE
CURLM_BAD_EASY_HANDLE = 2member CURLM_BAD_FUNCTION_ARGUMENT
CURLM_BAD_FUNCTION_ARGUMENT = 10member CURLM_BAD_HANDLE
CURLM_BAD_HANDLE = 1member CURLM_BAD_SOCKET
CURLM_BAD_SOCKET = 5member CURLM_CALL_MULTI_PERFORM
CURLM_CALL_MULTI_PERFORM = -1member CURLM_CALL_MULTI_SOCKET
CURLM_CALL_MULTI_SOCKET = -1member CURLM_INTERNAL_ERROR
CURLM_INTERNAL_ERROR = 4member CURLM_LAST
CURLM_LAST = 11member CURLM_OK
CURLM_OK = 0member CURLM_OUT_OF_MEMORY
CURLM_OUT_OF_MEMORY = 3member CURLM_RECURSIVE_API_CALL
CURLM_RECURSIVE_API_CALL = 8member CURLM_UNKNOWN_OPTION
CURLM_UNKNOWN_OPTION = 6member CURLM_WAKEUP_FAILURE
CURLM_WAKEUP_FAILURE = 9enum CurlMultiNetworkChanged
enum CurlMultiNetworkChanged { ClearConns = 1, ClearDns = 1,}To be used with the
NETRCoptionCURLMNC_CLEAR_CONNSbecomesCurlMultiNetworkChanged.ClearConnsModifiers
@public
member ClearConns
ClearConns = 1Tells libcurl to prevent further reuse of existing connections. Connections that are idle will be closed. Ongoing transfers will continue with the connection they have.
member ClearDns
ClearDns = 1Tells libcurl to clear the DNS cache.
enum CurlNetrc
enum CurlNetrc { Ignored = 0, Optional = 1, Required = 2,}To be used with the
NETRCoptionCURL_NETRC_OPTIONALbecomesCurlNetrc.OptionalModifiers
@public
member Ignored
Ignored = 0The .netrc will never be read. This is the default
member Optional
Optional = 1A user:password in the URL will be preferred to one in the .netrc
member Required
Required = 2A user:password in the URL will be ignored. Unless one is set programmatically, the .netrc will be queried.
enum CurlPause
enum CurlPause { Recv = 1, RecvCont = 0, Send = 4, SendCont = 0, All = 5, Cont = 0,}Options to be used with `Easy#pause` and `Curl#pause`.
CURLPAUSE_RECV_CONTbecomesCurlPause.RecvContModifiers
@public
enum CurlPipe
enum CurlPipe { Nothing = 0, Http1 = 1, Multiplex = 2,}Object with bit constants to be used with the multi handle option
PIPELININGThose are available starting with libcurl 7.43.0.CURLPIPE_NOTHINGbecomesCurlPipe.NothingModifiers
@public
member Http1
Http1 = 1Deprecated and has no effect since version 7.62.0
member Multiplex
Multiplex = 2If this bit is set, libcurl will try to multiplex the new transfer over an existing connection if possible. This requires HTTP/2.
This is enabled by default starting with version 7.62.0
member Nothing
Nothing = 0enum CurlPreReqFunc
enum CurlPreReqFunc { Ok = 0, Abort = 1,}Object to be used as the return value for the callback set with the option
PREREQFUNCTIONCURL_PREREQFUNC_OKbecomesCurlPreReqFunc.OkModifiers
@public
enum CurlProgressFunc
enum CurlProgressFunc { Continue = 268435457,}To be used with the progress callback
CURL_PROGRESSFUNC_CONTINUEbecomesCurlProgressFunc.ContinueModifiers
@public
member Continue
Continue = 268435457This is a return code for the progress callback that, when returned, will signal libcurl to continue executing the default progress function Added on libcurl 7.68
enum CurlProtocol
enum CurlProtocol { HTTP = 1, HTTPS = 2, FTP = 4, FTPS = 8, SCP = 16, SFTP = 32, TELNET = 64, LDAP = 128, LDAPS = 256, DICT = 512, FILE = 1024, TFTP = 2048, IMAP = 4096, IMAPS = 8192, POP3 = 16384, POP3S = 32768, SMTP = 65536, SMTPS = 131072, RTSP = 262144, RTMP = 524288, RTMPT = 1048576, RTMPE = 2097152, RTMPTE = 4194304, RTMPS = 8388608, RTMPTS = 16777216, GOPHER = 33554432, SMB = 67108864, SMBS = 134217728, MQTT = 268435456, GOPHERS = 536870912, ALL = -1,}Object with the protocols supported by libcurl, as bitmasks. Should be used when setting
PROTOCOLSandREDIR_PROTOCOLSoptions.CURLPROTO_HTTPbecomesCurlProtocol.HTTPModifiers
@public
member ALL
ALL = -1member DICT
DICT = 512member FILE
FILE = 1024member FTP
FTP = 4member FTPS
FTPS = 8member GOPHER
GOPHER = 33554432member GOPHERS
GOPHERS = 536870912member HTTP
HTTP = 1member HTTPS
HTTPS = 2member IMAP
IMAP = 4096member IMAPS
IMAPS = 8192member LDAP
LDAP = 128member LDAPS
LDAPS = 256member MQTT
MQTT = 268435456member POP3
POP3 = 16384member POP3S
POP3S = 32768member RTMP
RTMP = 524288member RTMPE
RTMPE = 2097152member RTMPS
RTMPS = 8388608member RTMPT
RTMPT = 1048576member RTMPTE
RTMPTE = 4194304member RTMPTS
RTMPTS = 16777216member RTSP
RTSP = 262144member SCP
SCP = 16member SFTP
SFTP = 32member SMB
SMB = 67108864member SMBS
SMBS = 134217728member SMTP
SMTP = 65536member SMTPS
SMTPS = 131072member TELNET
TELNET = 64member TFTP
TFTP = 2048enum CurlProxy
enum CurlProxy { Http = 0, Http_1_0 = 1, Https = 2, Https2 = 3, Socks4 = 4, Socks5 = 5, Socks4A = 6, Socks5Hostname = 7,}Object with constants for option
PROXYTYPECURLPROXY_HTTPbecomesCurlProxy.HttpModifiers
@public
enum CurlPush
enum CurlPush { Ok = 0, Deny = 1, ErrorOut = 2,}Object with constants to be used as the return value for the `Multi` option
PUSHFUNCTION.CURL_PUSH_OKbecomesCurlPush.OkModifiers
@public
enum CurlPx
enum CurlPx { Ok = 0, BadAddressType = 1, BadVersion = 2, Closed = 3, Gssapi = 4, GssapiPermsg = 5, GssapiProtection = 6, Identd = 7, IdentdDiffer = 8, LongHostname = 9, LongPasswd = 10, LongUser = 11, NoAuth = 12, RecvAddress = 13, RecvAuth = 14, RecvConnect = 15, RecvReqack = 16, ReplyAddressTypeNotSupported = 17, ReplyCommandNotSupported = 18, ReplyConnectionRefused = 19, ReplyGeneralServerFailure = 20, ReplyHostUnreachable = 21, ReplyNetworkUnreachable = 22, ReplyNotAllowed = 23, ReplyTtlExpired = 24, ReplyUnassigned = 25, RequestFailed = 26, ResolveHost = 27, SendAuth = 28, SendConnect = 29, SendRequest = 30, UnknownFail = 31, UnknownMode = 32, UserRejected = 33,}Object with constants for usage with the info
PROXY_ERRORCURLPX_OKbecomesCurlPx.OkModifiers
@public
member BadAddressType
BadAddressType = 1member BadVersion
BadVersion = 2member Closed
Closed = 3member Gssapi
Gssapi = 4member GssapiPermsg
GssapiPermsg = 5member GssapiProtection
GssapiProtection = 6member Identd
Identd = 7member IdentdDiffer
IdentdDiffer = 8member LongHostname
LongHostname = 9member LongPasswd
LongPasswd = 10member LongUser
LongUser = 11member NoAuth
NoAuth = 12member Ok
Ok = 0member RecvAddress
RecvAddress = 13member RecvAuth
RecvAuth = 14member RecvConnect
RecvConnect = 15member RecvReqack
RecvReqack = 16member ReplyAddressTypeNotSupported
ReplyAddressTypeNotSupported = 17member ReplyCommandNotSupported
ReplyCommandNotSupported = 18member ReplyConnectionRefused
ReplyConnectionRefused = 19member ReplyGeneralServerFailure
ReplyGeneralServerFailure = 20member ReplyHostUnreachable
ReplyHostUnreachable = 21member ReplyNetworkUnreachable
ReplyNetworkUnreachable = 22member ReplyNotAllowed
ReplyNotAllowed = 23member ReplyTtlExpired
ReplyTtlExpired = 24member ReplyUnassigned
ReplyUnassigned = 25member RequestFailed
RequestFailed = 26member ResolveHost
ResolveHost = 27member SendAuth
SendAuth = 28member SendConnect
SendConnect = 29member SendRequest
SendRequest = 30member UnknownFail
UnknownFail = 31member UnknownMode
UnknownMode = 32member UserRejected
UserRejected = 33enum CurlReadFunc
enum CurlReadFunc { Abort = 268435456, Pause = 268435457,}Special return codes for
READFUNCTIONoptionCURL_READFUNC_ABORTbecomesCurlReadFunc.AbortModifiers
@public
enum CurlRtspRequest
enum CurlRtspRequest { None = 0, Options = 1, Describe = 2, Announce = 3, Setup = 4, Play = 5, Pause = 6, Teardown = 7, GetParameter = 8, SetParameter = 9, Record = 10, Receive = 11,}Object with constants for option
RTSP_REQUESTOnly available on libcurl >= 7.20CURL_RTSPREQ_OPTIONSbecomesCurlRtspRequest.OptionsModifiers
@public
member Announce
Announce = 3member Describe
Describe = 2member GetParameter
GetParameter = 8member None
None = 0member Options
Options = 1member Pause
Pause = 6member Play
Play = 5member Receive
Receive = 11member Record
Record = 10member SetParameter
SetParameter = 9member Setup
Setup = 4member Teardown
Teardown = 7enum CurlShareCode
enum CurlShareCode { CURLSHE_OK = 0, CURLSHE_BAD_OPTION = 1, CURLSHE_IN_USE = 2, CURLSHE_INVALID = 3, CURLSHE_NOMEM = 4, CURLSHE_NOT_BUILT_IN = 5, CURLSHE_LAST = 6,}Modifiers
@public
member CURLSHE_BAD_OPTION
CURLSHE_BAD_OPTION = 1member CURLSHE_IN_USE
CURLSHE_IN_USE = 2member CURLSHE_INVALID
CURLSHE_INVALID = 3member CURLSHE_LAST
CURLSHE_LAST = 6member CURLSHE_NOMEM
CURLSHE_NOMEM = 4member CURLSHE_NOT_BUILT_IN
CURLSHE_NOT_BUILT_IN = 5member CURLSHE_OK
CURLSHE_OK = 0enum CurlShareLock
enum CurlShareLock { DataNone = 0, DataShare = 1, DataCookie = 2, DataDns = 3, DataSslSession = 4, DataConnect = 5, DataPsl = 6, DataHsts = 7,}Options to be used when setting
SHAREorUNSHAREwith `Share#setOpt`.CURL_LOCK_DATA_SSL_SESSIONbecomesCurlShareLock.DataSslSessionModifiers
@public
member DataConnect
DataConnect = 5Put the connection cache in the share object and make all easy handles using this share object share the connection cache. Connections that are used for HTTP/2 or HTTP/3 multiplexing only get additional transfers added to them if the existing connection is held by the same multi or easy handle. libcurl does not support doing multiplexed streams in different threads using a shared connection. Note that when you use the multi interface, all easy handles added to the same multi handle share the connection cache by default without using this option.
member DataCookie
DataCookie = 2Cookie data is shared across the easy handles using this shared object. Note that this does not activate an easy handle's cookie handling. You can do that separately by using CURLOPT_COOKIEFILE for example.
member DataDns
DataDns = 3Cached DNS hosts are shared across the easy handles using this shared object. Note that when you use the multi interface, all easy handles added to the same multi handle share the DNS cache by default without using this option.
member DataHsts
DataHsts = 7The in-memory HSTS cache.
member DataNone
DataNone = 0member DataPsl
DataPsl = 6The Public Suffix List stored in the share object is made available to all easy handle bound to the later. Since the Public Suffix List is periodically refreshed, this avoids updates in too many different contexts.
Note that when you use the multi interface, all easy handles added to the same multi handle share the PSL cache by default without using this option.
member DataShare
DataShare = 1DataShare is used internally to say that the locking is just made to change the internal state of the share itself.
member DataSslSession
DataSslSession = 4SSL sessions are shared across the easy handles using this shared object. This reduces the time spent in the SSL handshake when reconnecting to the same server.
Note that when you use the multi interface, all easy handles added to the same multi handle share the SSL session cache by default without using this option.
enum CurlShareOption
enum CurlShareOption { SHARE = 1, UNSHARE = 2,}Options to be used with `Share#setOpt`.
Modifiers
@public
enum CurlSshAuth
enum CurlSshAuth { Any = -1, None = 0, PublicKey = 1, Password = 2, Host = 4, Keyboard = 8, Agent = 16, GssApi = 32, Default = -1,}Object with constants for option
SSH_AUTH_TYPESCURLSSH_AUTH_PASSWORDbecomesCurlSshAuth.PasswordModifiers
@public
member Agent
Agent = 16agent (ssh-agent, pageant...)
member Any
Any = -1all types supported by the server
member Default
Default = -1member GssApi
GssApi = 32gssapi (kerberos, ...)
member Host
Host = 4host key files
member Keyboard
Keyboard = 8keyboard interactive
member None
None = 0none allowed, silly but complete
member Password
Password = 2password
member PublicKey
PublicKey = 1public/private key files
enum CurlSshKeyMatch
enum CurlSshKeyMatch { Ok = 0, Mismatch = 1,}SSH host key match results for use with CURLOPT_SSH_HOSTKEYFUNCTION
These are return codes for the SSH host key callback function.
CURLKHMATCH_OKbecomesCurlSshKeyMatch.OkModifiers
@public
enum CurlSshKeyType
enum CurlSshKeyType { Unknown = 0, Rsa = 1, Dss = 2, Ecdsa = 3, Ed25519 = 4,}SSH host key types for use with CURLOPT_SSH_HOSTKEYFUNCTION
These values identify the type of SSH host key.
CURLKHTYPE_RSAbecomesCurlSshKeyType.RsaModifiers
@public
enum CurlSslOpt
enum CurlSslOpt { AllowBeast = 1, NoRevoke = 2, NoPartialChain = 4, RevokeBestEffort = 8, NativeCa = 16, AutoClientCert = 32, Earlydata = 64,}Object with constants for option
SSL_OPTIONSand/orPROXY_SSL_OPTIONSCURLSSLOPT_ALLOW_BEASTbecomesCurlSslOpt.AllowBeastModifiers
@public
member AllowBeast
AllowBeast = 1Tells libcurl to allow the BEAST SSL vulnerability in the name of improving interoperability with older servers. Some SSL libraries have introduced work-arounds for this flaw but those work-arounds sometimes make the SSL communication fail. To regain functionality with those broken servers, a user can this way allow the vulnerability back.
member AutoClientCert
AutoClientCert = 32Tells libcurl to automatically locate and use a client certificate for authentication. (Schannel)
Added with libcurl 7.77 - This was the default in previous versions
member Earlydata
Earlydata = 64If possible, send data using TLS 1.3 early data
member NativeCa
NativeCa = 16Tells libcurl to use standard certificate store of operating system. Currently implemented under MS-Windows.
member NoPartialChain
NoPartialChain = 4Tells libcurl to *NOT* accept a partial certificate chain if possible. The OpenSSL backend has this ability.
member NoRevoke
NoRevoke = 2Tells libcurl to disable certificate revocation checks for those SSL backends where such behavior is present.
member RevokeBestEffort
RevokeBestEffort = 8Tells libcurl to ignore certificate revocation offline checks and ignore missing revocation list for those SSL backends where such behavior is present.
enum CurlSslVersion
enum CurlSslVersion { Default = 0, TlsV1 = 1, SslV2 = 2, SslV3 = 3, TlsV1_0 = 4, TlsV1_1 = 5, TlsV1_2 = 6, TlsV1_3 = 7,}Object with constants for option
SSLVERSIONCURL_SSLVERSION_DEFAULTbecomesCurlSslVersion.DefaultModifiers
@public
enum CurlSslVersionMax
enum CurlSslVersionMax { None = 0, Default = 65536, TlsV1_0 = 262144, TlsV1_1 = 327680, TlsV1_2 = 393216, TlsV1_3 = 458752,}Object with constants for option
SSLVERSIONThe maximum TLS version can be set by using one of the
CurlSslVersionMaxfields of this Enum. It is also possible to OR one of theCurlSslVersionfields with one ofCurlSslVersionMaxCURL_SSLVERSION_MAX_TLSv1_0becomesCurlSslVersionMax.TlsV1_0Modifiers
@public
enum CurlTimeCond
enum CurlTimeCond { None = 0, IfModSince = 1, IfUnmodSince = 2, LastMod = 3,}Object with constants for option
TIMECONDITIONCURL_TIMECOND_IFMODSINCEbecomesCurlTimeCond.IfModSinceModifiers
@public
member IfModSince
IfModSince = 1member IfUnmodSince
IfUnmodSince = 2member LastMod
LastMod = 3member None
None = 0enum CurlUploadFlag
enum CurlUploadFlag { Answered = 1, Deleted = 2, Draft = 4, Flagged = 8, Seen = 16,}Object with constants for option
UPLOAD_FLAGSCURLULFLAG_ANSWEREDbecomesCurlUploadFlag.AnsweredModifiers
@public
member Answered
Answered = 1Sets the Answered flag for IMAP uploads
member Deleted
Deleted = 2Sets the Deleted flag for IMAP uploads
member Draft
Draft = 4Sets the Draft flag for IMAP uploads
member Flagged
Flagged = 8Sets the Flagged flag for IMAP uploads
member Seen
Seen = 16Sets the Seen flag for IMAP uploads
enum CurlUseSsl
enum CurlUseSsl { None = 0, Try = 1, Control = 2, All = 3,}Object with constants for option
USE_SSLCURLUSESSL_NONEbecomesCurlUseSsl.NoneModifiers
@public
enum CurlVersion
enum CurlVersion { Ipv6 = 1, Kerberos4 = 2, Ssl = 4, Libz = 8, Ntlm = 16, GssNegotiate = 32, Debug = 64, AsynchDns = 128, Spnego = 256, LargeFile = 512, Idn = 1024, Sspi = 2048, Conv = 4096, CurlDebug = 8192, TlsAuthSrp = 16384, NtlmWb = 32768, Http2 = 65536, GssApi = 131072, Kerberos5 = 262144, UnixSockets = 524288, Psl = 1048576, HttpsProxy = 2097152, MultiSsl = 4194304, Brotli = 8388608, AltSvc = 16777216, Http3 = 33554432, Zstd = 67108864, Unicode = 134217728, Gsasl = 536870912,}Object with constants for use with the
rawFeaturesmember of `CurlVersionInfoNativeBindingObject`, which is returned from `Curl.getVersionInfo`.CURL_VERSION_IPV6becomesCurlVersion.Ipv6CURL_VERSION_GSSNEGOTIATEbecomesCurlVersion.GssNegotiate...Modifiers
@public
member AltSvc
AltSvc = 16777216Alt-Svc handling built-in
member AsynchDns
AsynchDns = 128Asynchronous DNS resolver is available
member Brotli
Brotli = 8388608Brotli features are present.
member Conv
Conv = 4096Character conversions supported
member CurlDebug
CurlDebug = 8192Debug memory tracking supported
member Debug
Debug = 64libcurl was built with debug capabilities
member Gsasl
Gsasl = 536870912libgsasl is supported
member GssApi
GssApi = 131072Built against a GSS-API library
member GssNegotiate
GssNegotiate = 32Negotiate auth is supported (deprecated)
member Http2
Http2 = 65536HTTP2 support built-in
member Http3
Http3 = 33554432HTTP3 support built-in
member HttpsProxy
HttpsProxy = 2097152HTTPS-proxy support built-in
member Idn
Idn = 1024Internationized Domain Names are supported
member Ipv6
Ipv6 = 1IPv6-enabled
member Kerberos4
Kerberos4 = 2Kerberos V4 auth is supported (deprecated)
member Kerberos5
Kerberos5 = 262144Kerberos V5 auth is supported
member LargeFile
LargeFile = 512Supports files larger than 2GB
member Libz
Libz = 8libz features are present
member MultiSsl
MultiSsl = 4194304Multiple SSL backends available
member Ntlm
Ntlm = 16NTLM auth is supported
member NtlmWb
NtlmWb = 32768NTLM delegation to winbind helper is supported
member Psl
Psl = 1048576Mozilla's Public Suffix List, used for cookie domain verification
member Spnego
Spnego = 256SPNEGO auth is supported
member Ssl
Ssl = 4SSL options are present
member Sspi
Sspi = 2048Built against Windows SSPI
member TlsAuthSrp
TlsAuthSrp = 16384TLS-SRP auth is supported
member Unicode
Unicode = 134217728Unicode support on Windows
member UnixSockets
UnixSockets = 524288Unix domain sockets support
member Zstd
Zstd = 67108864zstd features are present
enum CurlWriteFunc
enum CurlWriteFunc { Pause = 268435457, Abort = 4294967295,}Special return codes for
WRITEFUNCTIONoptionCURL_WRITEFUNC_PAUSEbecomesCurlWriteFunc.PauseModifiers
@public
member Abort
Abort = 4294967295This is a magic return code for the write callback that, when returned, will signal an error from the callback.
member Pause
Pause = 268435457This is a magic return code for the write callback that, when returned, will signal libcurl to pause receiving on the current transfer.
enum CurlWs
enum CurlWs { Text = 1, Binary = 2, Cont = 4, Close = 8, Ping = 16, Pong = 32, Offset = 64,}WebSocket frame flags
These flags are used to identify the type of WebSocket frame and its properties. The frame type flags (Text, Binary, Close, Ping, Pong) are mutually exclusive.
CURLWS_TEXTbecomesCurlWs.TextModifiers
@public
member Binary
Binary = 2The frame contains binary data.
member Close
Close = 8This is a close frame. It may contain a 2-byte unsigned integer in network byte order that indicates the close reason and may additionally contain up to 123 bytes of further textual payload.
member Cont
Cont = 4This is a continuation frame. It implies there is another fragment coming as part of the same message. Only one fragmented message can be transmitted at a time, but it may be interrupted by control frames (Close, Ping, Pong).
member Offset
Offset = 64Used when sending partial frames. The provided data is only a partial frame and there is more coming in a following call to wsSend().
member Ping
Ping = 16This is a ping frame. It may contain up to 125 bytes of payload. libcurl automatically responds with a pong message unless disabled via WS_OPTIONS.
member Pong
Pong = 32This is a pong frame. It may contain up to 125 bytes of payload.
member Text
Text = 1The frame contains text data. Note that libcurl does not verify that the content is valid UTF-8.
enum CurlWsOptions
enum CurlWsOptions { RawMode = 1, NoAutoPong = 2,}WebSocket options flags
These flags are used with the WS_OPTIONS curl option.
Modifiers
@public
member NoAutoPong
NoAutoPong = 2Tells libcurl to not automatically respond to PING frames with PONG.
member RawMode
RawMode = 1Passes on the data from the network without parsing it, leaving that entirely to the application. This mode is intended for applications that already have a WebSocket parser/engine.
enum SocketState
enum SocketState { Readable = 1, Writable = 2,}This will be the type of the second parameter passed to the callback set with `Easy#onSocketEvent`.
Modifiers
@public
Type Aliases
type BlobOptions
type BlobOptions = | 'CAINFO_BLOB' | 'ISSUERCERT_BLOB' | 'SSLKEY_BLOB' | 'SSLCERT_BLOB' | 'PROXY_CAINFO_BLOB' | 'PROXY_SSLCERT_BLOB' | 'PROXY_SSLCERT' | 'PROXY_SSLKEY_BLOB';type CurlInfoName
type CurlInfoName = | 'ACTIVESOCKET' | 'APPCONNECT_TIME' | 'APPCONNECT_TIME_T' | 'CAINFO' | 'CAPATH' | 'CERTINFO' | 'CONDITION_UNMET' | 'CONN_ID' | 'CONNECT_TIME' | 'CONNECT_TIME_T' | 'CONTENT_LENGTH_DOWNLOAD' | 'CONTENT_LENGTH_DOWNLOAD_T' | 'CONTENT_LENGTH_UPLOAD' | 'CONTENT_LENGTH_UPLOAD_T' | 'CONTENT_TYPE' | 'COOKIELIST' | 'EARLYDATA_SENT_T' | 'EFFECTIVE_METHOD' | 'EFFECTIVE_URL' | 'FILETIME' | 'FILETIME_T' | 'FTP_ENTRY_PATH' | 'HEADER_SIZE' | 'HTTP_CONNECTCODE' | 'HTTP_VERSION' | 'HTTPAUTH_AVAIL' | 'HTTPAUTH_USED' | 'LASTSOCKET' | 'LOCAL_IP' | 'LOCAL_PORT' | 'NAMELOOKUP_TIME' | 'NAMELOOKUP_TIME_T' | 'NUM_CONNECTS' | 'OS_ERRNO' | 'POSTTRANSFER_TIME_T' | 'PRETRANSFER_TIME' | 'PRETRANSFER_TIME_T' | 'PRIMARY_IP' | 'PRIMARY_PORT' | 'PRIVATE' | 'PROTOCOL' | 'PROXY_ERROR' | 'PROXY_SSL_VERIFYRESULT' | 'PROXYAUTH_AVAIL' | 'PROXYAUTH_USED' | 'QUEUE_TIME_T' | 'REDIRECT_COUNT' | 'REDIRECT_TIME' | 'REDIRECT_TIME_T' | 'REDIRECT_URL' | 'REFERER' | 'REQUEST_SIZE' | 'RESPONSE_CODE' | 'RETRY_AFTER' | 'RTSP_CLIENT_CSEQ' | 'RTSP_CSEQ_RECV' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'SCHEME' | 'SIZE_DOWNLOAD' | 'SIZE_DOWNLOAD_T' | 'SIZE_UPLOAD' | 'SIZE_UPLOAD_T' | 'SPEED_DOWNLOAD' | 'SPEED_DOWNLOAD_T' | 'SPEED_UPLOAD' | 'SPEED_UPLOAD_T' | 'SSL_ENGINES' | 'SSL_VERIFYRESULT' | 'STARTTRANSFER_TIME' | 'STARTTRANSFER_TIME_T' | 'TLS_SESSION' | 'TLS_SSL_PTR' | 'TOTAL_TIME' | 'TOTAL_TIME_T' | 'USED_PROXY' | 'XFER_ID';Modifiers
@public
type CurlOptionName
type CurlOptionName = | 'ABSTRACT_UNIX_SOCKET' | 'ACCEPT_ENCODING' | 'ACCEPTTIMEOUT_MS' | 'ADDRESS_SCOPE' | 'ALTSVC' | 'ALTSVC_CTRL' | 'APPEND' | 'AUTOREFERER' | 'AWS_SIGV4' | 'BUFFERSIZE' | 'CA_CACHE_TIMEOUT' | 'CAINFO' | 'CAINFO_BLOB' | 'CAPATH' | 'CERTINFO' | 'CHUNK_BGN_FUNCTION' | 'CHUNK_END_FUNCTION' | 'CONNECT_ONLY' | 'CONNECT_TO' | 'CONNECTTIMEOUT' | 'CONNECTTIMEOUT_MS' | 'COOKIE' | 'COOKIEFILE' | 'COOKIEJAR' | 'COOKIELIST' | 'COOKIESESSION' | 'CRLF' | 'CRLFILE' | 'CUSTOMREQUEST' | 'DEBUGFUNCTION' | 'DEFAULT_PROTOCOL' | 'DIRLISTONLY' | 'DISALLOW_USERNAME_IN_URL' | 'DNS_CACHE_TIMEOUT' | 'DNS_INTERFACE' | 'DNS_LOCAL_IP4' | 'DNS_LOCAL_IP6' | 'DNS_SERVERS' | 'DNS_SHUFFLE_ADDRESSES' | 'DNS_USE_GLOBAL_CACHE' | 'DOH_SSL_VERIFYHOST' | 'DOH_SSL_VERIFYPEER' | 'DOH_SSL_VERIFYSTATUS' | 'DOH_URL' | 'ECH' | 'EGDSOCKET' | 'EXPECT_100_TIMEOUT_MS' | 'FAILONERROR' | 'FILETIME' | 'FNMATCH_FUNCTION' | 'FOLLOWLOCATION' | 'FORBID_REUSE' | 'FRESH_CONNECT' | 'FTP_ACCOUNT' | 'FTP_ALTERNATIVE_TO_USER' | 'FTP_CREATE_MISSING_DIRS' | 'FTP_FILEMETHOD' | 'FTP_SKIP_PASV_IP' | 'FTP_SSL_CCC' | 'FTP_USE_EPRT' | 'FTP_USE_EPSV' | 'FTP_USE_PRET' | 'FTPPORT' | 'FTPSSLAUTH' | 'GSSAPI_DELEGATION' | 'HAPPY_EYEBALLS_TIMEOUT_MS' | 'HAPROXY_CLIENT_IP' | 'HAPROXYPROTOCOL' | 'HEADER' | 'HEADERFUNCTION' | 'HEADEROPT' | 'HSTS' | 'HSTS_CTRL' | 'HSTSREADFUNCTION' | 'HSTSWRITEFUNCTION' | 'HTTP_CONTENT_DECODING' | 'HTTP_TRANSFER_DECODING' | 'HTTP_VERSION' | 'HTTP09_ALLOWED' | 'HTTP200ALIASES' | 'HTTPAUTH' | 'HTTPGET' | 'HTTPHEADER' | 'HTTPPOST' | 'HTTPPROXYTUNNEL' | 'IGNORE_CONTENT_LENGTH' | 'INFILESIZE' | 'INFILESIZE_LARGE' | 'INTERFACE' | 'INTERLEAVEFUNCTION' | 'IPRESOLVE' | 'ISSUERCERT' | 'ISSUERCERT_BLOB' | 'KEEP_SENDING_ON_ERROR' | 'KEYPASSWD' | 'KRBLEVEL' | 'LOCALPORT' | 'LOCALPORTRANGE' | 'LOGIN_OPTIONS' | 'LOW_SPEED_LIMIT' | 'LOW_SPEED_TIME' | 'MAIL_AUTH' | 'MAIL_FROM' | 'MAIL_RCPT' | 'MAIL_RCPT_ALLOWFAILS' | 'MAX_RECV_SPEED_LARGE' | 'MAX_SEND_SPEED_LARGE' | 'MAXAGE_CONN' | 'MAXCONNECTS' | 'MAXFILESIZE' | 'MAXFILESIZE_LARGE' | 'MAXLIFETIME_CONN' | 'MAXREDIRS' | 'MIME_OPTIONS' | 'MIMEPOST' | 'NETRC' | 'NETRC_FILE' | 'NEW_DIRECTORY_PERMS' | 'NEW_FILE_PERMS' | 'NOBODY' | 'NOPROGRESS' | 'NOPROXY' | 'NOSIGNAL' | 'PASSWORD' | 'PATH_AS_IS' | 'PINNEDPUBLICKEY' | 'PIPEWAIT' | 'PORT' | 'POST' | 'POSTFIELDS' | 'POSTFIELDSIZE' | 'POSTFIELDSIZE_LARGE' | 'POSTQUOTE' | 'POSTREDIR' | 'PRE_PROXY' | 'PREQUOTE' | 'PREREQFUNCTION' | 'PROGRESSFUNCTION' | 'PROTOCOLS' | 'PROTOCOLS_STR' | 'PROXY' | 'PROXY_CAINFO' | 'PROXY_CAINFO_BLOB' | 'PROXY_CAPATH' | 'PROXY_CRLFILE' | 'PROXY_ISSUERCERT' | 'PROXY_ISSUERCERT_BLOB' | 'PROXY_KEYPASSWD' | 'PROXY_PINNEDPUBLICKEY' | 'PROXY_SERVICE_NAME' | 'PROXY_SSL_CIPHER_LIST' | 'PROXY_SSL_OPTIONS' | 'PROXY_SSL_VERIFYHOST' | 'PROXY_SSL_VERIFYPEER' | 'PROXY_SSLCERT' | 'PROXY_SSLCERT_BLOB' | 'PROXY_SSLCERTTYPE' | 'PROXY_SSLKEY' | 'PROXY_SSLKEY_BLOB' | 'PROXY_SSLKEYTYPE' | 'PROXY_SSLVERSION' | 'PROXY_TLS13_CIPHERS' | 'PROXY_TLSAUTH_PASSWORD' | 'PROXY_TLSAUTH_TYPE' | 'PROXY_TLSAUTH_USERNAME' | 'PROXY_TRANSFER_MODE' | 'PROXYAUTH' | 'PROXYHEADER' | 'PROXYPASSWORD' | 'PROXYPORT' | 'PROXYTYPE' | 'PROXYUSERNAME' | 'PROXYUSERPWD' | 'PUT' | 'QUICK_EXIT' | 'QUOTE' | 'RANDOM_FILE' | 'RANGE' | 'READDATA' | 'READFUNCTION' | 'REDIR_PROTOCOLS' | 'REDIR_PROTOCOLS_STR' | 'REFERER' | 'REQUEST_TARGET' | 'RESOLVE' | 'RESUME_FROM' | 'RESUME_FROM_LARGE' | 'RTSP_CLIENT_CSEQ' | 'RTSP_REQUEST' | 'RTSP_SERVER_CSEQ' | 'RTSP_SESSION_ID' | 'RTSP_STREAM_URI' | 'RTSP_TRANSPORT' | 'SASL_AUTHZID' | 'SASL_IR' | 'SEEKFUNCTION' | 'SERVER_RESPONSE_TIMEOUT' | 'SERVER_RESPONSE_TIMEOUT_MS' | 'SERVICE_NAME' | 'SHARE' | 'SOCKS5_AUTH' | 'SOCKS5_GSSAPI_NEC' | 'SOCKS5_GSSAPI_SERVICE' | 'SSH_AUTH_TYPES' | 'SSH_COMPRESSION' | 'SSH_HOST_PUBLIC_KEY_MD5' | 'SSH_HOST_PUBLIC_KEY_SHA256' | 'SSH_HOSTKEYFUNCTION' | 'SSH_KNOWNHOSTS' | 'SSH_PRIVATE_KEYFILE' | 'SSH_PUBLIC_KEYFILE' | 'SSL_CIPHER_LIST' | 'SSL_EC_CURVES' | 'SSL_ENABLE_ALPN' | 'SSL_ENABLE_NPN' | 'SSL_FALSESTART' | 'SSL_OPTIONS' | 'SSL_SESSIONID_CACHE' | 'SSL_SIGNATURE_ALGORITHMS' | 'SSL_VERIFYHOST' | 'SSL_VERIFYPEER' | 'SSL_VERIFYSTATUS' | 'SSLCERT' | 'SSLCERT_BLOB' | 'SSLCERTTYPE' | 'SSLENGINE' | 'SSLENGINE_DEFAULT' | 'SSLKEY' | 'SSLKEY_BLOB' | 'SSLKEYTYPE' | 'SSLVERSION' | 'STREAM_DEPENDS' | 'STREAM_DEPENDS_E' | 'STREAM_WEIGHT' | 'SUPPRESS_CONNECT_HEADERS' | 'TCP_FASTOPEN' | 'TCP_KEEPALIVE' | 'TCP_KEEPCNT' | 'TCP_KEEPIDLE' | 'TCP_KEEPINTVL' | 'TCP_NODELAY' | 'TELNETOPTIONS' | 'TFTP_BLKSIZE' | 'TFTP_NO_OPTIONS' | 'TIMECONDITION' | 'TIMEOUT' | 'TIMEOUT_MS' | 'TIMEVALUE' | 'TIMEVALUE_LARGE' | 'TLS13_CIPHERS' | 'TLSAUTH_PASSWORD' | 'TLSAUTH_TYPE' | 'TLSAUTH_USERNAME' | 'TRAILERFUNCTION' | 'TRANSFER_ENCODING' | 'TRANSFERTEXT' | 'UNIX_SOCKET_PATH' | 'UNRESTRICTED_AUTH' | 'UPKEEP_INTERVAL_MS' | 'UPLOAD' | 'UPLOAD_BUFFERSIZE' | 'UPLOAD_FLAGS' | 'URL' | 'USE_SSL' | 'USERAGENT' | 'USERNAME' | 'USERPWD' | 'VERBOSE' | 'WILDCARDMATCH' | 'WRITEFUNCTION' | 'WS_OPTIONS' | 'XFERINFOFUNCTION' | 'XOAUTH2_BEARER';Modifiers
@public
type CurlOptionValueType
type CurlOptionValueType = { /** * Path to an abstract Unix domain socket. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html) */ ABSTRACT_UNIX_SOCKET?: string | number | boolean | null; /** * Path to an abstract Unix domain socket. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_ABSTRACT_UNIX_SOCKET.html) */ abstractUnixSocket?: string | number | boolean | null; /** * Accept-Encoding and automatic decompressing data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html) */ ACCEPT_ENCODING?: string | number | boolean | null; /** * Accept-Encoding and automatic decompressing data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html) */ acceptEncoding?: string | number | boolean | null; /** * Timeout for waiting for the server's connect back to be accepted. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html) */ ACCEPTTIMEOUT_MS?: string | number | boolean | null; /** * Timeout for waiting for the server's connect back to be accepted. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_ACCEPTTIMEOUT_MS.html) */ acceptTimeoutMs?: string | number | boolean | null; /** * IPv6 scope for local addresses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html) */ ADDRESS_SCOPE?: string | number | boolean | null; /** * IPv6 scope for local addresses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_ADDRESS_SCOPE.html) */ addressScope?: string | number | boolean | null; /** * Specify the Alt-Svc: cache filename. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html) */ ALTSVC?: string | number | boolean | null; /** * Specify the Alt-Svc: cache filename. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC.html) */ altSvc?: string | number | boolean | null; /** * Enable and configure Alt-Svc: treatment. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html) */ ALTSVC_CTRL?: string | number | boolean | null; /** * Enable and configure Alt-Svc: treatment. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_ALTSVC_CTRL.html) */ altSvcCtrl?: string | number | boolean | null; /** * Append to remote file. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html](https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html) */ APPEND?: string | number | boolean | null; /** * Append to remote file. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html](https://curl.haxx.se/libcurl/c/CURLOPT_APPEND.html) */ append?: string | number | boolean | null; /** * Automatically set Referer: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html) */ AUTOREFERER?: string | number | boolean | null; /** * Automatically set Referer: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_AUTOREFERER.html) */ autoReferer?: string | number | boolean | null; /** * AWS HTTP V4 Signature. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html](https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html) */ AWS_SIGV4?: string | number | boolean | null; /** * AWS HTTP V4 Signature. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html](https://curl.haxx.se/libcurl/c/CURLOPT_AWS_SIGV4.html) */ awsSigV4?: string | number | boolean | null; /** * Ask for alternate buffer size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html) */ BUFFERSIZE?: string | number | boolean | null; /** * Ask for alternate buffer size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_BUFFERSIZE.html) */ bufferSize?: string | number | boolean | null; /** * Timeout for CA cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html) */ CA_CACHE_TIMEOUT?: string | number | boolean | null; /** * Timeout for CA cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CA_CACHE_TIMEOUT.html) */ caCacheTimeout?: string | number | boolean | null; /** * CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html) */ CAINFO?: string | number | boolean | null; /** * CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO.html) */ caInfo?: string | number | boolean | null; /** * CA cert bundle memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html) */ CAINFO_BLOB?: ArrayBuffer | Buffer | string | null; /** * CA cert bundle memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAINFO_BLOB.html) */ caInfoBlob?: ArrayBuffer | Buffer | string | null; /** * Path to CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html) */ CAPATH?: string | number | boolean | null; /** * Path to CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_CAPATH.html) */ caPath?: string | number | boolean | null; /** * Extract certificate info. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html) */ CERTINFO?: string | number | boolean | null; /** * Extract certificate info. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CERTINFO.html) */ certInfo?: string | number | boolean | null; /** * Callback for wildcard download start of chunk. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html) */ CHUNK_BGN_FUNCTION?: | ((this: Easy, fileInfo: FileInfo, remains: number) => CurlChunk) | null; /** * Callback for wildcard download start of chunk. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_BGN_FUNCTION.html) */ chunkBgnFunction?: | ((this: Easy, fileInfo: FileInfo, remains: number) => CurlChunk) | null; /** * Callback for wildcard download end of chunk. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html) */ CHUNK_END_FUNCTION?: ((this: Easy) => CurlChunk) | null; /** * Callback for wildcard download end of chunk. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_CHUNK_END_FUNCTION.html) */ chunkEndFunction?: ((this: Easy) => CurlChunk) | null; /** * Only connect, nothing else. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html) */ CONNECT_ONLY?: string | number | boolean | null; /** * Only connect, nothing else. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_ONLY.html) */ connectOnly?: string | number | boolean | null; /** * Connect to a specific host and port. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html) */ CONNECT_TO?: string[] | null; /** * Connect to a specific host and port. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECT_TO.html) */ connectTo?: string[] | null; /** * Timeout for the connection phase. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html) */ CONNECTTIMEOUT?: string | number | boolean | null; /** * Timeout for the connection phase. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT.html) */ connectTimeout?: string | number | boolean | null; /** * Millisecond timeout for the connection phase. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html) */ CONNECTTIMEOUT_MS?: string | number | boolean | null; /** * Millisecond timeout for the connection phase. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_CONNECTTIMEOUT_MS.html) */ connectTimeoutMs?: string | number | boolean | null; /** * Cookie(s) to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html) */ COOKIE?: string | number | boolean | null; /** * Cookie(s) to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html) */ cookie?: string | number | boolean | null; /** * File to read cookies from. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html) */ COOKIEFILE?: string | number | boolean | null; /** * File to read cookies from. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html) */ cookieFile?: string | number | boolean | null; /** * File to write cookies to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html) */ COOKIEJAR?: string | number | boolean | null; /** * File to write cookies to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html) */ cookieJar?: string | number | boolean | null; /** * Add or control cookies. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html) */ COOKIELIST?: string | number | boolean | null; /** * Add or control cookies. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIELIST.html) */ cookieList?: string | number | boolean | null; /** * Start a new cookie session. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html) */ COOKIESESSION?: string | number | boolean | null; /** * Start a new cookie session. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_COOKIESESSION.html) */ cookieSession?: string | number | boolean | null; /** * Convert newlines. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html) */ CRLF?: string | number | boolean | null; /** * Convert newlines. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLF.html) */ crlf?: string | number | boolean | null; /** * Certificate Revocation List. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html) */ CRLFILE?: string | number | boolean | null; /** * Certificate Revocation List. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_CRLFILE.html) */ crlFile?: string | number | boolean | null; /** * Custom request/method. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html) */ CUSTOMREQUEST?: string | number | boolean | null; /** * Custom request/method. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_CUSTOMREQUEST.html) */ customRequest?: string | number | boolean | null; /** * Callback for debug information. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html) */ DEBUGFUNCTION?: ((this: Easy, type: CurlInfoDebug, data: Buffer) => 0) | null; /** * Callback for debug information. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEBUGFUNCTION.html) */ debugFunction?: ((this: Easy, type: CurlInfoDebug, data: Buffer) => 0) | null; /** * Default protocol. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html) */ DEFAULT_PROTOCOL?: string | number | boolean | null; /** * Default protocol. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DEFAULT_PROTOCOL.html) */ defaultProtocol?: string | number | boolean | null; /** * List only. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html) */ DIRLISTONLY?: string | number | boolean | null; /** * List only. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html](https://curl.haxx.se/libcurl/c/CURLOPT_DIRLISTONLY.html) */ dirListOnly?: string | number | boolean | null; /** * Do not allow username in URL. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html) */ DISALLOW_USERNAME_IN_URL?: string | number | boolean | null; /** * Do not allow username in URL. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DISALLOW_USERNAME_IN_URL.html) */ disallowUsernameInUrl?: string | number | boolean | null; /** * Timeout for DNS cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html) */ DNS_CACHE_TIMEOUT?: string | number | boolean | null; /** * Timeout for DNS cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_CACHE_TIMEOUT.html) */ dnsCacheTimeout?: string | number | boolean | null; /** * Bind name resolves to this interface. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html) */ DNS_INTERFACE?: string | number | boolean | null; /** * Bind name resolves to this interface. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_INTERFACE.html) */ dnsInterface?: string | number | boolean | null; /** * Bind name resolves to this IP4 address. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html) */ DNS_LOCAL_IP4?: string | number | boolean | null; /** * Bind name resolves to this IP4 address. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP4.html) */ dnsLocalIp4?: string | number | boolean | null; /** * Bind name resolves to this IP6 address. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html) */ DNS_LOCAL_IP6?: string | number | boolean | null; /** * Bind name resolves to this IP6 address. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_LOCAL_IP6.html) */ dnsLocalIp6?: string | number | boolean | null; /** * Preferred DNS servers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html) */ DNS_SERVERS?: string | number | boolean | null; /** * Preferred DNS servers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SERVERS.html) */ dnsServers?: string | number | boolean | null; /** * Shuffle addresses before use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html) */ DNS_SHUFFLE_ADDRESSES?: string | number | boolean | null; /** * Shuffle addresses before use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_SHUFFLE_ADDRESSES.html) */ dnsShuffleAddresses?: string | number | boolean | null; /** * OBSOLETE Enable global DNS cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html) */ DNS_USE_GLOBAL_CACHE?: string | number | boolean | null; /** * OBSOLETE Enable global DNS cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_DNS_USE_GLOBAL_CACHE.html) */ dnsUseGlobalCache?: string | number | boolean | null; /** * Verify the hostname in the DoH (DNS-over-HTTPS) SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html) */ DOH_SSL_VERIFYHOST?: string | number | boolean | null; /** * Verify the hostname in the DoH (DNS-over-HTTPS) SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYHOST.html) */ dohSslVerifyHost?: string | number | boolean | null; /** * Verify the DoH (DNS-over-HTTPS) SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html) */ DOH_SSL_VERIFYPEER?: string | number | boolean | null; /** * Verify the DoH (DNS-over-HTTPS) SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYPEER.html) */ dohSslVerifyPeer?: string | number | boolean | null; /** * Verify the DoH (DNS-over-HTTPS) SSL certificate's status. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html) */ DOH_SSL_VERIFYSTATUS?: string | number | boolean | null; /** * Verify the DoH (DNS-over-HTTPS) SSL certificate's status. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_SSL_VERIFYSTATUS.html) */ dohSslVerifyStatus?: string | number | boolean | null; /** * Use this DoH server for name resolves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html) */ DOH_URL?: string | number | boolean | null; /** * Use this DoH server for name resolves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_DOH_URL.html) */ dohUrl?: string | number | boolean | null; /** * Set the configuration for ECH. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html](https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html) */ ECH?: string | number | boolean | null; /** * Set the configuration for ECH. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html](https://curl.haxx.se/libcurl/c/CURLOPT_ECH.html) */ ech?: string | number | boolean | null; /** * OBSOLETE Identify EGD socket for entropy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html) */ EGDSOCKET?: string | number | boolean | null; /** * OBSOLETE Identify EGD socket for entropy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html](https://curl.haxx.se/libcurl/c/CURLOPT_EGDSOCKET.html) */ egdSocket?: string | number | boolean | null; /** * 100-continue timeout. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html) */ EXPECT_100_TIMEOUT_MS?: string | number | boolean | null; /** * 100-continue timeout. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_EXPECT_100_TIMEOUT_MS.html) */ expect100TimeoutMs?: string | number | boolean | null; /** * Fail on HTTP 4xx errors. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html) */ FAILONERROR?: string | number | boolean | null; /** * Fail on HTTP 4xx errors. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_FAILONERROR.html) */ failOnError?: string | number | boolean | null; /** * Request file modification date and time. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html) */ FILETIME?: string | number | boolean | null; /** * Request file modification date and time. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_FILETIME.html) */ fileTime?: string | number | boolean | null; /** * Callback for wildcard matching. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html) */ FNMATCH_FUNCTION?: | ((this: Easy, pattern: string, value: string) => CurlFnMatchFunc) | null; /** * Callback for wildcard matching. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FNMATCH_FUNCTION.html) */ fnMatchFunction?: | ((this: Easy, pattern: string, value: string) => CurlFnMatchFunc) | null; /** * Follow HTTP redirects. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html) */ FOLLOWLOCATION?: string | number | boolean | null; /** * Follow HTTP redirects. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_FOLLOWLOCATION.html) */ followLocation?: string | number | boolean | null; /** * Prevent subsequent connections from reusing this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html) */ FORBID_REUSE?: string | number | boolean | null; /** * Prevent subsequent connections from reusing this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_FORBID_REUSE.html) */ forbIdReuse?: string | number | boolean | null; /** * Use a new connection. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html) */ FRESH_CONNECT?: string | number | boolean | null; /** * Use a new connection. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FRESH_CONNECT.html) */ freshConnect?: string | number | boolean | null; /** * Send ACCT command. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html) */ FTP_ACCOUNT?: string | number | boolean | null; /** * Send ACCT command. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ACCOUNT.html) */ ftpAccount?: string | number | boolean | null; /** * Alternative to USER. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html) */ FTP_ALTERNATIVE_TO_USER?: string | number | boolean | null; /** * Alternative to USER. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_ALTERNATIVE_TO_USER.html) */ ftpAlternativeToUser?: string | number | boolean | null; /** * Create missing directories on the remote server. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html) */ FTP_CREATE_MISSING_DIRS?: string | number | boolean | null; /** * Create missing directories on the remote server. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_CREATE_MISSING_DIRS.html) */ ftpCreateMissingDirs?: string | number | boolean | null; /** * Specify how to reach files. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html) */ FTP_FILEMETHOD?: CurlFtpMethod | null; /** * Specify how to reach files. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_FILEMETHOD.html) */ ftpFileMethod?: CurlFtpMethod | null; /** * Ignore the IP address in the PASV response. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html) */ FTP_SKIP_PASV_IP?: string | number | boolean | null; /** * Ignore the IP address in the PASV response. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SKIP_PASV_IP.html) */ ftpSkipPasvIp?: string | number | boolean | null; /** * Back to non-TLS again after authentication. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html) */ FTP_SSL_CCC?: CurlFtpSsl | null; /** * Back to non-TLS again after authentication. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_SSL_CCC.html) */ ftpSslCcc?: CurlFtpSsl | null; /** * Use EPRT. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html) */ FTP_USE_EPRT?: string | number | boolean | null; /** * Use EPRT. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPRT.html) */ ftpUseEprt?: string | number | boolean | null; /** * Use EPSV. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html) */ FTP_USE_EPSV?: string | number | boolean | null; /** * Use EPSV. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_EPSV.html) */ ftpUseEpsv?: string | number | boolean | null; /** * Use PRET. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html) */ FTP_USE_PRET?: string | number | boolean | null; /** * Use PRET. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTP_USE_PRET.html) */ ftpUsePret?: string | number | boolean | null; /** * Use active FTP. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html) */ FTPPORT?: string | number | boolean | null; /** * Use active FTP. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPPORT.html) */ ftpPort?: string | number | boolean | null; /** * Control how to do TLS. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html) */ FTPSSLAUTH?: string | number | boolean | null; /** * Control how to do TLS. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_FTPSSLAUTH.html) */ ftpSslAuth?: string | number | boolean | null; /** * Disable GSS-API delegation. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html) */ GSSAPI_DELEGATION?: CurlGssApi | null; /** * Disable GSS-API delegation. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html](https://curl.haxx.se/libcurl/c/CURLOPT_GSSAPI_DELEGATION.html) */ gssapiDelegation?: CurlGssApi | null; /** * Timeout for happy eyeballs. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html) */ HAPPY_EYEBALLS_TIMEOUT_MS?: string | number | boolean | null; /** * Timeout for happy eyeballs. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.html) */ happyEyeballsTimeoutMs?: string | number | boolean | null; /** * Spoof the client IP in an HAProxy PROXY protocol v1 header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html) */ HAPROXY_CLIENT_IP?: string | number | boolean | null; /** * Spoof the client IP in an HAProxy PROXY protocol v1 header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXY_CLIENT_IP.html) */ haProxyClientIp?: string | number | boolean | null; /** * Send an HAProxy PROXY protocol v1 header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html) */ HAPROXYPROTOCOL?: string | number | boolean | null; /** * Send an HAProxy PROXY protocol v1 header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HAPROXYPROTOCOL.html) */ haProxyProtocol?: string | number | boolean | null; /** * Include the header in the body output. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html) */ HEADER?: string | number | boolean | null; /** * Include the header in the body output. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADER.html) */ header?: string | number | boolean | null; /** * Callback for writing received headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html) */ HEADERFUNCTION?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Callback for writing received headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html) */ headerFunction?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Control custom headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html) */ HEADEROPT?: CurlHeader | null; /** * Control custom headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_HEADEROPT.html) */ headerOpt?: CurlHeader | null; /** * Set HSTS cache file. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html) */ HSTS?: string | number | boolean | null; /** * Set HSTS cache file. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS.html) */ hsts?: string | number | boolean | null; /** * Enable HSTS. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html) */ HSTS_CTRL?: CurlHsts | null; /** * Enable HSTS. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTS_CTRL.html) */ hstsCtrl?: CurlHsts | null; /** * Set HSTS read callback. * * 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: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html) */ HSTSREADFUNCTION?: | (( this: Easy, options: { maxHostLengthBytes: number; } ) => null | CurlHstsCacheEntry | CurlHstsCacheEntry[]) | null; /** * Set HSTS read callback. * * 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: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSREADFUNCTION.html) */ hstsReadFunction?: | (( this: Easy, options: { maxHostLengthBytes: number; } ) => null | CurlHstsCacheEntry | CurlHstsCacheEntry[]) | null; /** * Set HSTS write callback. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html) */ HSTSWRITEFUNCTION?: | (( this: Easy, cacheEntry: CurlHstsCacheEntry, cacheCount: CurlHstsCacheCount ) => any) | null; /** * Set HSTS write callback. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HSTSWRITEFUNCTION.html) */ hstsWriteFunction?: | (( this: Easy, cacheEntry: CurlHstsCacheEntry, cacheCount: CurlHstsCacheCount ) => any) | null; /** * Disable Content decoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html) */ HTTP_CONTENT_DECODING?: string | number | boolean | null; /** * Disable Content decoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_CONTENT_DECODING.html) */ httpContentDecoding?: string | number | boolean | null; /** * Disable Transfer decoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html) */ HTTP_TRANSFER_DECODING?: string | number | boolean | null; /** * Disable Transfer decoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_TRANSFER_DECODING.html) */ httpTransferDecoding?: string | number | boolean | null; /** * HTTP version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html) */ HTTP_VERSION?: CurlHttpVersion | null; /** * HTTP version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP_VERSION.html) */ httpVersion?: CurlHttpVersion | null; /** * Allow HTTP/0.9 responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html) */ HTTP09_ALLOWED?: string | number | boolean | null; /** * Allow HTTP/0.9 responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP09_ALLOWED.html) */ http09Allowed?: string | number | boolean | null; /** * Alternative versions of 200 OK. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html) */ HTTP200ALIASES?: string[] | null; /** * Alternative versions of 200 OK. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTP200ALIASES.html) */ http200aliases?: string[] | null; /** * HTTP server authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html) */ HTTPAUTH?: string | number | boolean | null; /** * HTTP server authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPAUTH.html) */ httpAuth?: string | number | boolean | null; /** * Do an HTTP GET request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html) */ HTTPGET?: string | number | boolean | null; /** * Do an HTTP GET request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPGET.html) */ httpGet?: string | number | boolean | null; /** * Custom HTTP headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html) */ HTTPHEADER?: string[] | null; /** * Custom HTTP headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPHEADER.html) */ httpHeader?: string[] | null; /** * Deprecated option Multipart formpost HTTP POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html) */ HTTPPOST?: HttpPostField[] | null; /** * Deprecated option Multipart formpost HTTP POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPOST.html) */ httpPost?: HttpPostField[] | null; /** * Tunnel through the HTTP proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html) */ HTTPPROXYTUNNEL?: string | number | boolean | null; /** * Tunnel through the HTTP proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_HTTPPROXYTUNNEL.html) */ httpProxyTunnel?: string | number | boolean | null; /** * Ignore Content-Length. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html) */ IGNORE_CONTENT_LENGTH?: string | number | boolean | null; /** * Ignore Content-Length. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_IGNORE_CONTENT_LENGTH.html) */ ignoreContentLength?: string | number | boolean | null; /** * Size of file to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html) */ INFILESIZE?: string | number | boolean | null; /** * Size of file to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE.html) */ inFileSize?: string | number | boolean | null; /** * Size of file to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html) */ INFILESIZE_LARGE?: string | number | boolean | null; /** * Size of file to send. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INFILESIZE_LARGE.html) */ inFileSizeLarge?: string | number | boolean | null; /** * Bind connection locally to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html) */ INTERFACE?: string | number | boolean | null; /** * Bind connection locally to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERFACE.html) */ interface?: string | number | boolean | null; /** * Callback for RTSP interleaved data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html) */ INTERLEAVEFUNCTION?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Callback for RTSP interleaved data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_INTERLEAVEFUNCTION.html) */ interleaveFunction?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * IP version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html) */ IPRESOLVE?: CurlIpResolve | null; /** * IP version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_IPRESOLVE.html) */ ipResolve?: CurlIpResolve | null; /** * Issuer certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html) */ ISSUERCERT?: string | number | boolean | null; /** * Issuer certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT.html) */ issuerCert?: string | number | boolean | null; /** * Issuer certificate memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html) */ ISSUERCERT_BLOB?: ArrayBuffer | Buffer | string | null; /** * Issuer certificate memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_ISSUERCERT_BLOB.html) */ issuerCertBlob?: ArrayBuffer | Buffer | string | null; /** * Keep sending on HTTP \>= 300 errors. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html) */ KEEP_SENDING_ON_ERROR?: string | number | boolean | null; /** * Keep sending on HTTP \>= 300 errors. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEEP_SENDING_ON_ERROR.html) */ keepSendingOnError?: string | number | boolean | null; /** * Client key password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html) */ KEYPASSWD?: string | number | boolean | null; /** * Client key password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_KEYPASSWD.html) */ keyPasswd?: string | number | boolean | null; /** * OBSOLETE. Kerberos security level. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html) */ KRBLEVEL?: string | number | boolean | null; /** * OBSOLETE. Kerberos security level. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html](https://curl.haxx.se/libcurl/c/CURLOPT_KRBLEVEL.html) */ krbLevel?: string | number | boolean | null; /** * Bind connection locally to this port. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html) */ LOCALPORT?: string | number | boolean | null; /** * Bind connection locally to this port. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORT.html) */ localPort?: string | number | boolean | null; /** * Bind connection locally to port range. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html) */ LOCALPORTRANGE?: string | number | boolean | null; /** * Bind connection locally to port range. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOCALPORTRANGE.html) */ localPortRange?: string | number | boolean | null; /** * Login options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html) */ LOGIN_OPTIONS?: string | number | boolean | null; /** * Login options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOGIN_OPTIONS.html) */ loginOptions?: string | number | boolean | null; /** * Low speed limit to abort transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html) */ LOW_SPEED_LIMIT?: string | number | boolean | null; /** * Low speed limit to abort transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_LIMIT.html) */ lowSpeedLimit?: string | number | boolean | null; /** * Time to be below the speed to trigger low speed abort. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html) */ LOW_SPEED_TIME?: string | number | boolean | null; /** * Time to be below the speed to trigger low speed abort. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html](https://curl.haxx.se/libcurl/c/CURLOPT_LOW_SPEED_TIME.html) */ lowSpeedTime?: string | number | boolean | null; /** * Authentication address. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html) */ MAIL_AUTH?: string | number | boolean | null; /** * Authentication address. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_AUTH.html) */ mailAuth?: string | number | boolean | null; /** * Address of the sender. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html) */ MAIL_FROM?: string | number | boolean | null; /** * Address of the sender. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_FROM.html) */ mailFrom?: string | number | boolean | null; /** * Address of the recipients. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html) */ MAIL_RCPT?: string[] | null; /** * Address of the recipients. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT.html) */ mailRcpt?: string[] | null; /** * Allow RCPT TO command to fail for some recipients. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html) */ MAIL_RCPT_ALLOWFAILS?: string | number | boolean | null; /** * Allow RCPT TO command to fail for some recipients. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAIL_RCPT_ALLOWFAILS.html) */ mailRcptAllowfails?: string | number | boolean | null; /** * Cap the download speed to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html) */ MAX_RECV_SPEED_LARGE?: string | number | boolean | null; /** * Cap the download speed to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_RECV_SPEED_LARGE.html) */ maxRecvSpeedLarge?: string | number | boolean | null; /** * Cap the upload speed to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html) */ MAX_SEND_SPEED_LARGE?: string | number | boolean | null; /** * Cap the upload speed to this. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAX_SEND_SPEED_LARGE.html) */ maxSendSpeedLarge?: string | number | boolean | null; /** * Limit the age (idle time) of connections for reuse. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html) */ MAXAGE_CONN?: string | number | boolean | null; /** * Limit the age (idle time) of connections for reuse. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html) */ maxAgeConn?: string | number | boolean | null; /** * Maximum number of connections in the connection pool. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html) */ MAXCONNECTS?: string | number | boolean | null; /** * Maximum number of connections in the connection pool. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXCONNECTS.html) */ maxConnects?: string | number | boolean | null; /** * Maximum file size to get. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html) */ MAXFILESIZE?: string | number | boolean | null; /** * Maximum file size to get. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE.html) */ maxFileSize?: string | number | boolean | null; /** * Maximum file size to get. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html) */ MAXFILESIZE_LARGE?: string | number | boolean | null; /** * Maximum file size to get. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXFILESIZE_LARGE.html) */ maxFileSizeLarge?: string | number | boolean | null; /** * Limit the age (since creation) of connections for reuse. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html) */ MAXLIFETIME_CONN?: string | number | boolean | null; /** * Limit the age (since creation) of connections for reuse. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXLIFETIME_CONN.html) */ maxLifetimeConn?: string | number | boolean | null; /** * Maximum number of redirects to follow. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html) */ MAXREDIRS?: string | number | boolean | null; /** * Maximum number of redirects to follow. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MAXREDIRS.html) */ maxRedirs?: string | number | boolean | null; /** * Set MIME option flags. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html) */ MIME_OPTIONS?: CurlMimeOpt | null; /** * Set MIME option flags. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIME_OPTIONS.html) */ mimeOptions?: CurlMimeOpt | null; /** * Post/send MIME data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html) */ MIMEPOST?: CurlMime | null; /** * Post/send MIME data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_MIMEPOST.html) */ mimePost?: CurlMime | null; /** * Enable .netrc parsing. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html) */ NETRC?: CurlNetrc | null; /** * Enable .netrc parsing. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC.html) */ netrc?: CurlNetrc | null; /** * .netrc filename. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html) */ NETRC_FILE?: string | number | boolean | null; /** * .netrc filename. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_NETRC_FILE.html) */ netrcFile?: string | number | boolean | null; /** * Mode for creating new remote directories. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html) */ NEW_DIRECTORY_PERMS?: string | number | boolean | null; /** * Mode for creating new remote directories. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_DIRECTORY_PERMS.html) */ newDirectoryPerms?: string | number | boolean | null; /** * Mode for creating new remote files. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html) */ NEW_FILE_PERMS?: string | number | boolean | null; /** * Mode for creating new remote files. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NEW_FILE_PERMS.html) */ newFilePerms?: string | number | boolean | null; /** * Do not get the body contents. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html) */ NOBODY?: string | number | boolean | null; /** * Do not get the body contents. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOBODY.html) */ nobody?: string | number | boolean | null; /** * Shut off the progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html) */ NOPROGRESS?: string | number | boolean | null; /** * Shut off the progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROGRESS.html) */ noProgress?: string | number | boolean | null; /** * Filter out hosts from proxy use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html) */ NOPROXY?: string | number | boolean | null; /** * Filter out hosts from proxy use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOPROXY.html) */ noProxy?: string | number | boolean | null; /** * Do not install signal handlers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html) */ NOSIGNAL?: string | number | boolean | null; /** * Do not install signal handlers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html](https://curl.haxx.se/libcurl/c/CURLOPT_NOSIGNAL.html) */ noSignal?: string | number | boolean | null; /** * Password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html) */ PASSWORD?: string | number | boolean | null; /** * Password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PASSWORD.html) */ password?: string | number | boolean | null; /** * Disable squashing /../ and /./ sequences in the path. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html) */ PATH_AS_IS?: string | number | boolean | null; /** * Disable squashing /../ and /./ sequences in the path. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PATH_AS_IS.html) */ pathAsIs?: string | number | boolean | null; /** * Set pinned SSL public key . * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html) */ PINNEDPUBLICKEY?: string | number | boolean | null; /** * Set pinned SSL public key . * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PINNEDPUBLICKEY.html) */ pinnedPublicKey?: string | number | boolean | null; /** * Wait on connection to pipeline on it. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html) */ PIPEWAIT?: string | number | boolean | null; /** * Wait on connection to pipeline on it. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PIPEWAIT.html) */ pipeWait?: string | number | boolean | null; /** * Port number to connect to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html) */ PORT?: string | number | boolean | null; /** * Port number to connect to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PORT.html) */ port?: string | number | boolean | null; /** * Make an HTTP POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POST.html](https://curl.haxx.se/libcurl/c/CURLOPT_POST.html) */ POST?: string | number | boolean | null; /** * Make an HTTP POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POST.html](https://curl.haxx.se/libcurl/c/CURLOPT_POST.html) */ post?: string | number | boolean | null; /** * Send a POST with this data - does not copy it. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html) */ POSTFIELDS?: string | number | boolean | null; /** * Send a POST with this data - does not copy it. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDS.html) */ postFields?: string | number | boolean | null; /** * The POST data is this big. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html) */ POSTFIELDSIZE?: string | number | boolean | null; /** * The POST data is this big. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE.html) */ postFieldSize?: string | number | boolean | null; /** * The POST data is this big. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html) */ POSTFIELDSIZE_LARGE?: string | number | boolean | null; /** * The POST data is this big. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTFIELDSIZE_LARGE.html) */ postFieldSizeLarge?: string | number | boolean | null; /** * Commands to run after transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html) */ POSTQUOTE?: string[] | null; /** * Commands to run after transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTQUOTE.html) */ postQuote?: string[] | null; /** * How to act on redirects after POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html) */ POSTREDIR?: string | number | boolean | null; /** * How to act on redirects after POST. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html](https://curl.haxx.se/libcurl/c/CURLOPT_POSTREDIR.html) */ postRedir?: string | number | boolean | null; /** * Socks proxy to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html) */ PRE_PROXY?: string | number | boolean | null; /** * Socks proxy to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PRE_PROXY.html) */ preProxy?: string | number | boolean | null; /** * Commands to run just before transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html) */ PREQUOTE?: string[] | null; /** * Commands to run just before transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREQUOTE.html) */ preQuote?: string[] | null; /** * Callback to be called after a connection is established but before a request is made on that connection. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html) */ PREREQFUNCTION?: | (( this: Easy, connPrimaryIp: string, connLocalIp: string, connPrimaryPort: number, conLocalPort: number ) => CurlPreReqFunc) | null; /** * Callback to be called after a connection is established but before a request is made on that connection. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PREREQFUNCTION.html) */ preReqFunction?: | (( this: Easy, connPrimaryIp: string, connLocalIp: string, connPrimaryPort: number, conLocalPort: number ) => CurlPreReqFunc) | null; /** * OBSOLETE callback for progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html) */ PROGRESSFUNCTION?: | (( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number | CurlProgressFunc) | null; /** * OBSOLETE callback for progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROGRESSFUNCTION.html) */ progressFunction?: | (( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number | CurlProgressFunc) | null; /** * Deprecated option Allowed protocols. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html) */ PROTOCOLS?: CurlProtocol | null; /** * Deprecated option Allowed protocols. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS.html) */ protocols?: CurlProtocol | null; /** * Allowed protocols. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html) */ PROTOCOLS_STR?: string | number | boolean | null; /** * Allowed protocols. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROTOCOLS_STR.html) */ protocolsStr?: string | number | boolean | null; /** * Proxy to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html) */ PROXY?: string | number | boolean | null; /** * Proxy to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html) */ proxy?: string | number | boolean | null; /** * Proxy CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html) */ PROXY_CAINFO?: string | number | boolean | null; /** * Proxy CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO.html) */ proxyCaInfo?: string | number | boolean | null; /** * Proxy CA cert bundle memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html) */ PROXY_CAINFO_BLOB?: ArrayBuffer | Buffer | string | null; /** * Proxy CA cert bundle memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAINFO_BLOB.html) */ proxyCaInfoBlob?: ArrayBuffer | Buffer | string | null; /** * Path to proxy CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html) */ PROXY_CAPATH?: string | number | boolean | null; /** * Path to proxy CA cert bundle. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CAPATH.html) */ proxyCaPath?: string | number | boolean | null; /** * Proxy Certificate Revocation List. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html) */ PROXY_CRLFILE?: string | number | boolean | null; /** * Proxy Certificate Revocation List. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_CRLFILE.html) */ proxyCrlFile?: string | number | boolean | null; /** * Proxy issuer certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html) */ PROXY_ISSUERCERT?: string | number | boolean | null; /** * Proxy issuer certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT.html) */ proxyIssuerCert?: string | number | boolean | null; /** * Proxy issuer certificate memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html) */ PROXY_ISSUERCERT_BLOB?: string | number | boolean | null; /** * Proxy issuer certificate memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_ISSUERCERT_BLOB.html) */ proxyIssuerCertBlob?: string | number | boolean | null; /** * Proxy client key password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html) */ PROXY_KEYPASSWD?: string | number | boolean | null; /** * Proxy client key password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_KEYPASSWD.html) */ proxyKeyPasswd?: string | number | boolean | null; /** * Set the proxy's pinned SSL public key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html) */ PROXY_PINNEDPUBLICKEY?: string | number | boolean | null; /** * Set the proxy's pinned SSL public key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_PINNEDPUBLICKEY.html) */ proxyPinnedPublicKey?: string | number | boolean | null; /** * Proxy authentication service name. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html) */ PROXY_SERVICE_NAME?: string | number | boolean | null; /** * Proxy authentication service name. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SERVICE_NAME.html) */ proxyServiceName?: string | number | boolean | null; /** * Proxy ciphers to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html) */ PROXY_SSL_CIPHER_LIST?: string | number | boolean | null; /** * Proxy ciphers to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_CIPHER_LIST.html) */ proxySslCipherList?: string | number | boolean | null; /** * Control proxy SSL behavior. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html) */ PROXY_SSL_OPTIONS?: CurlSslOpt | null; /** * Control proxy SSL behavior. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_OPTIONS.html) */ proxySslOptions?: CurlSslOpt | null; /** * Verify the hostname in the proxy SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html) */ PROXY_SSL_VERIFYHOST?: string | number | boolean | null; /** * Verify the hostname in the proxy SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYHOST.html) */ proxySslVerifyHost?: string | number | boolean | null; /** * Verify the proxy SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html) */ PROXY_SSL_VERIFYPEER?: string | number | boolean | null; /** * Verify the proxy SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSL_VERIFYPEER.html) */ proxySslVerifyPeer?: string | number | boolean | null; /** * Proxy client cert. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html) */ PROXY_SSLCERT?: ArrayBuffer | Buffer | string | null; /** * Proxy client cert. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT.html) */ proxySslCert?: ArrayBuffer | Buffer | string | null; /** * Proxy client cert memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html) */ PROXY_SSLCERT_BLOB?: ArrayBuffer | Buffer | string | null; /** * Proxy client cert memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERT_BLOB.html) */ proxySslCertBlob?: ArrayBuffer | Buffer | string | null; /** * Proxy client cert type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html) */ PROXY_SSLCERTTYPE?: string | number | boolean | null; /** * Proxy client cert type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLCERTTYPE.html) */ proxySslCertType?: string | number | boolean | null; /** * Proxy client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html) */ PROXY_SSLKEY?: string | number | boolean | null; /** * Proxy client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY.html) */ proxySslKey?: string | number | boolean | null; /** * Proxy client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html) */ PROXY_SSLKEY_BLOB?: ArrayBuffer | Buffer | string | null; /** * Proxy client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEY_BLOB.html) */ proxySslKeyBlob?: ArrayBuffer | Buffer | string | null; /** * Proxy client key type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html) */ PROXY_SSLKEYTYPE?: string | number | boolean | null; /** * Proxy client key type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLKEYTYPE.html) */ proxySslKeyType?: string | number | boolean | null; /** * Proxy SSL version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html) */ PROXY_SSLVERSION?: string | number | boolean | null; /** * Proxy SSL version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_SSLVERSION.html) */ proxySslversion?: string | number | boolean | null; /** * Proxy TLS 1.3 cipher suites to use. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html) */ PROXY_TLS13_CIPHERS?: string | number | boolean | null; /** * Proxy TLS 1.3 cipher suites to use. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLS13_CIPHERS.html) */ proxyTls13Ciphers?: string | number | boolean | null; /** * Proxy TLS authentication password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html) */ PROXY_TLSAUTH_PASSWORD?: string | number | boolean | null; /** * Proxy TLS authentication password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_PASSWORD.html) */ proxyTlsAuthPassword?: string | number | boolean | null; /** * Proxy TLS authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html) */ PROXY_TLSAUTH_TYPE?: string | number | boolean | null; /** * Proxy TLS authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_TYPE.html) */ proxyTlsAuthType?: string | number | boolean | null; /** * Proxy TLS authentication username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html) */ PROXY_TLSAUTH_USERNAME?: string | number | boolean | null; /** * Proxy TLS authentication username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TLSAUTH_USERNAME.html) */ proxyTlsAuthUsername?: string | number | boolean | null; /** * Add transfer mode to URL over proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html) */ PROXY_TRANSFER_MODE?: string | number | boolean | null; /** * Add transfer mode to URL over proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXY_TRANSFER_MODE.html) */ proxyTransferMode?: string | number | boolean | null; /** * HTTP proxy authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html) */ PROXYAUTH?: string | number | boolean | null; /** * HTTP proxy authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYAUTH.html) */ proxyAuth?: string | number | boolean | null; /** * Custom HTTP headers sent to proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html) */ PROXYHEADER?: string[] | null; /** * Custom HTTP headers sent to proxy. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYHEADER.html) */ proxyHeader?: string[] | null; /** * Proxy password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html) */ PROXYPASSWORD?: string | number | boolean | null; /** * Proxy password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPASSWORD.html) */ proxyPassword?: string | number | boolean | null; /** * Proxy port to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html) */ PROXYPORT?: string | number | boolean | null; /** * Proxy port to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYPORT.html) */ proxyPort?: string | number | boolean | null; /** * Proxy type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html) */ PROXYTYPE?: CurlProxy | null; /** * Proxy type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYTYPE.html) */ proxyType?: CurlProxy | null; /** * Proxy username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html) */ PROXYUSERNAME?: string | number | boolean | null; /** * Proxy username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERNAME.html) */ proxyUsername?: string | number | boolean | null; /** * Proxy username and password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html) */ PROXYUSERPWD?: string | number | boolean | null; /** * Proxy username and password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_PROXYUSERPWD.html) */ proxyUserpwd?: string | number | boolean | null; /** * Deprecated option Issue an HTTP PUT request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html) */ PUT?: string | number | boolean | null; /** * Deprecated option Issue an HTTP PUT request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_PUT.html) */ put?: string | number | boolean | null; /** * To be set by toplevel tools like "curl" to skip lengthy cleanups when they are about to call exit() anyway. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html) */ QUICK_EXIT?: string | number | boolean | null; /** * To be set by toplevel tools like "curl" to skip lengthy cleanups when they are about to call exit() anyway. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html) */ quickExit?: string | number | boolean | null; /** * Commands to run before transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html) */ QUOTE?: string[] | null; /** * Commands to run before transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html](https://curl.haxx.se/libcurl/c/CURLOPT_QUOTE.html) */ quote?: string[] | null; /** * OBSOLETE Provide source for entropy random data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html) */ RANDOM_FILE?: string | number | boolean | null; /** * OBSOLETE Provide source for entropy random data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANDOM_FILE.html) */ randomFile?: string | number | boolean | null; /** * Range requests. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html) */ RANGE?: string | number | boolean | null; /** * Range requests. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RANGE.html) */ range?: string | number | boolean | null; /** * Data pointer to pass to the read callback. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html](https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html) */ READDATA?: string | number | boolean | null; /** * Data pointer to pass to the read callback. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html](https://curl.haxx.se/libcurl/c/CURLOPT_READDATA.html) */ readData?: string | number | boolean | null; /** * Callback for reading data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html) */ READFUNCTION?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Callback for reading data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_READFUNCTION.html) */ readFunction?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Deprecated option Protocols to allow redirects to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html) */ REDIR_PROTOCOLS?: CurlProtocol | null; /** * Deprecated option Protocols to allow redirects to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS.html) */ redirProtocols?: CurlProtocol | null; /** * Protocols to allow redirects to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html) */ REDIR_PROTOCOLS_STR?: string | number | boolean | null; /** * Protocols to allow redirects to. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html](https://curl.haxx.se/libcurl/c/CURLOPT_REDIR_PROTOCOLS_STR.html) */ redirProtocolsStr?: string | number | boolean | null; /** * Referer: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html) */ REFERER?: string | number | boolean | null; /** * Referer: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html](https://curl.haxx.se/libcurl/c/CURLOPT_REFERER.html) */ referer?: string | number | boolean | null; /** * Set the request target. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html) */ REQUEST_TARGET?: string | number | boolean | null; /** * Set the request target. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html](https://curl.haxx.se/libcurl/c/CURLOPT_REQUEST_TARGET.html) */ requestTarget?: string | number | boolean | null; /** * Provide fixed/fake name resolves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html) */ RESOLVE?: string[] | null; /** * Provide fixed/fake name resolves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html) */ resolve?: string[] | null; /** * Resume a transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html) */ RESUME_FROM?: string | number | boolean | null; /** * Resume a transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM.html) */ resumeFrom?: string | number | boolean | null; /** * Resume a transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html) */ RESUME_FROM_LARGE?: string | number | boolean | null; /** * Resume a transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_RESUME_FROM_LARGE.html) */ resumeFromLarge?: string | number | boolean | null; /** * Client CSEQ number. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html) */ RTSP_CLIENT_CSEQ?: string | number | boolean | null; /** * Client CSEQ number. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_CLIENT_CSEQ.html) */ rtspClientCseq?: string | number | boolean | null; /** * RTSP request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html) */ RTSP_REQUEST?: CurlRtspRequest | null; /** * RTSP request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_REQUEST.html) */ rtspRequest?: CurlRtspRequest | null; /** * CSEQ number for RTSP Server-\>Client request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html) */ RTSP_SERVER_CSEQ?: string | number | boolean | null; /** * CSEQ number for RTSP Server-\>Client request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SERVER_CSEQ.html) */ rtspServerCseq?: string | number | boolean | null; /** * RTSP session-id. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html) */ RTSP_SESSION_ID?: string | number | boolean | null; /** * RTSP session-id. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_SESSION_ID.html) */ rtspSessionId?: string | number | boolean | null; /** * RTSP stream URI. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html) */ RTSP_STREAM_URI?: string | number | boolean | null; /** * RTSP stream URI. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_STREAM_URI.html) */ rtspStreamUri?: string | number | boolean | null; /** * RTSP Transport: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html) */ RTSP_TRANSPORT?: string | number | boolean | null; /** * RTSP Transport: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html](https://curl.haxx.se/libcurl/c/CURLOPT_RTSP_TRANSPORT.html) */ rtspTransPort?: string | number | boolean | null; /** * SASL authorization identity (identity to act as). * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html) */ SASL_AUTHZID?: string | number | boolean | null; /** * SASL authorization identity (identity to act as). * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_AUTHZID.html) */ saslAuthzId?: string | number | boolean | null; /** * Enable SASL initial response. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html) */ SASL_IR?: string | number | boolean | null; /** * Enable SASL initial response. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html](https://curl.haxx.se/libcurl/c/CURLOPT_SASL_IR.html) */ saslIr?: string | number | boolean | null; /** * Callback for seek operations. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html) */ SEEKFUNCTION?: ((this: Easy, offset: number, origin: number) => number) | null; /** * Callback for seek operations. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SEEKFUNCTION.html) */ seekFunction?: ((this: Easy, offset: number, origin: number) => number) | null; /** * Timeout for server responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html) */ SERVER_RESPONSE_TIMEOUT?: string | number | boolean | null; /** * Timeout for server responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html) */ serverResponseTimeout?: string | number | boolean | null; /** * Timeout for server responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html) */ SERVER_RESPONSE_TIMEOUT_MS?: string | number | boolean | null; /** * Timeout for server responses. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT_MS.html) */ serverResponseTimeoutMs?: string | number | boolean | null; /** * Authentication service name. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html) */ SERVICE_NAME?: string | number | boolean | null; /** * Authentication service name. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_SERVICE_NAME.html) */ serviceName?: string | number | boolean | null; /** * Share object to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html) */ SHARE?: Share | null; /** * Share object to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SHARE.html) */ share?: Share | null; /** * Socks5 authentication methods. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html) */ SOCKS5_AUTH?: string | number | boolean | null; /** * Socks5 authentication methods. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_AUTH.html) */ socks5Auth?: string | number | boolean | null; /** * Socks5 GSSAPI NEC mode. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html) */ SOCKS5_GSSAPI_NEC?: string | number | boolean | null; /** * Socks5 GSSAPI NEC mode. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_NEC.html) */ socks5GssapiNec?: string | number | boolean | null; /** * Deprecated option Socks5 GSSAPI service name. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html) */ SOCKS5_GSSAPI_SERVICE?: string | number | boolean | null; /** * Deprecated option Socks5 GSSAPI service name. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SOCKS5_GSSAPI_SERVICE.html) */ socks5GssapiService?: string | number | boolean | null; /** * SSH authentication types. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html) */ SSH_AUTH_TYPES?: CurlSshAuth | null; /** * SSH authentication types. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_AUTH_TYPES.html) */ sshAuthTypes?: CurlSshAuth | null; /** * Enable SSH compression. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html) */ SSH_COMPRESSION?: string | number | boolean | null; /** * Enable SSH compression. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_COMPRESSION.html) */ sshCompression?: string | number | boolean | null; /** * MD5 of host's public key. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html) */ SSH_HOST_PUBLIC_KEY_MD5?: string | number | boolean | null; /** * MD5 of host's public key. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_MD5.html) */ sshHostPublicKeyMd5?: string | number | boolean | null; /** * SHA256 of host's public key. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html) */ SSH_HOST_PUBLIC_KEY_SHA256?: string | number | boolean | null; /** * SHA256 of host's public key. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256.html) */ sshHostPublicKeySha256?: string | number | boolean | null; /** * Callback for checking host key handling. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html) */ SSH_HOSTKEYFUNCTION?: | ((this: Easy, keytype: CurlSshKeyType, key: Buffer) => CurlSshKeyMatch) | null; /** * Callback for checking host key handling. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_HOSTKEYFUNCTION.html) */ sshHostKeyFunction?: | ((this: Easy, keytype: CurlSshKeyType, key: Buffer) => CurlSshKeyMatch) | null; /** * Filename with known hosts. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html) */ SSH_KNOWNHOSTS?: string | number | boolean | null; /** * Filename with known hosts. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_KNOWNHOSTS.html) */ sshKnownHosts?: string | number | boolean | null; /** * Filename of the private key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html) */ SSH_PRIVATE_KEYFILE?: string | number | boolean | null; /** * Filename of the private key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PRIVATE_KEYFILE.html) */ sshPrivateKeyFile?: string | number | boolean | null; /** * Filename of the public key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html) */ SSH_PUBLIC_KEYFILE?: string | number | boolean | null; /** * Filename of the public key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSH_PUBLIC_KEYFILE.html) */ sshPublicKeyFile?: string | number | boolean | null; /** * Ciphers to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html) */ SSL_CIPHER_LIST?: string | number | boolean | null; /** * Ciphers to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html) */ sslCipherList?: string | number | boolean | null; /** * Set key exchange curves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html) */ SSL_EC_CURVES?: string | number | boolean | null; /** * Set key exchange curves. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_EC_CURVES.html) */ sslEcCurves?: string | number | boolean | null; /** * Enable use of ALPN. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html) */ SSL_ENABLE_ALPN?: string | number | boolean | null; /** * Enable use of ALPN. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_ALPN.html) */ sslEnableAlpn?: string | number | boolean | null; /** * OBSOLETE Enable use of NPN. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html) */ SSL_ENABLE_NPN?: string | number | boolean | null; /** * OBSOLETE Enable use of NPN. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_ENABLE_NPN.html) */ sslEnableNpn?: string | number | boolean | null; /** * Deprecated option Enable TLS False Start. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html) */ SSL_FALSESTART?: string | number | boolean | null; /** * Deprecated option Enable TLS False Start. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_FALSESTART.html) */ sslFalsestart?: string | number | boolean | null; /** * Control SSL behavior. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html) */ SSL_OPTIONS?: CurlSslOpt | null; /** * Control SSL behavior. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_OPTIONS.html) */ sslOptions?: CurlSslOpt | null; /** * Disable SSL session-id cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html) */ SSL_SESSIONID_CACHE?: string | number | boolean | null; /** * Disable SSL session-id cache. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html) */ sslSessionIdCache?: string | number | boolean | null; /** * TLS signature algorithms to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html) */ SSL_SIGNATURE_ALGORITHMS?: string | number | boolean | null; /** * TLS signature algorithms to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SIGNATURE_ALGORITHMS.html) */ sslSignatureAlgorithms?: string | number | boolean | null; /** * Verify the hostname in the SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html) */ SSL_VERIFYHOST?: string | number | boolean | null; /** * Verify the hostname in the SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYHOST.html) */ sslVerifyHost?: string | number | boolean | null; /** * Verify the SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html) */ SSL_VERIFYPEER?: string | number | boolean | null; /** * Verify the SSL certificate. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYPEER.html) */ sslVerifyPeer?: string | number | boolean | null; /** * Verify the SSL certificate's status. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html) */ SSL_VERIFYSTATUS?: string | number | boolean | null; /** * Verify the SSL certificate's status. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_VERIFYSTATUS.html) */ sslVerifyStatus?: string | number | boolean | null; /** * Client cert. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html) */ SSLCERT?: string | number | boolean | null; /** * Client cert. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT.html) */ sslCert?: string | number | boolean | null; /** * Client cert memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html) */ SSLCERT_BLOB?: ArrayBuffer | Buffer | string | null; /** * Client cert memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERT_BLOB.html) */ sslCertBlob?: ArrayBuffer | Buffer | string | null; /** * Client cert type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html) */ SSLCERTTYPE?: string | number | boolean | null; /** * Client cert type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLCERTTYPE.html) */ sslCertType?: string | number | boolean | null; /** * Use identifier with SSL engine. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html) */ SSLENGINE?: string | number | boolean | null; /** * Use identifier with SSL engine. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE.html) */ sslEngine?: string | number | boolean | null; /** * Default SSL engine. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html) */ SSLENGINE_DEFAULT?: string | number | boolean | null; /** * Default SSL engine. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLENGINE_DEFAULT.html) */ sslEngineDefault?: string | number | boolean | null; /** * Client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html) */ SSLKEY?: string | number | boolean | null; /** * Client key. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY.html) */ sslKey?: string | number | boolean | null; /** * Client key memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html) */ SSLKEY_BLOB?: ArrayBuffer | Buffer | string | null; /** * Client key memory buffer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEY_BLOB.html) */ sslKeyBlob?: ArrayBuffer | Buffer | string | null; /** * Client key type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html) */ SSLKEYTYPE?: string | number | boolean | null; /** * Client key type. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLKEYTYPE.html) */ sslKeyType?: string | number | boolean | null; /** * SSL version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html) */ SSLVERSION?: CurlSslVersion | null; /** * SSL version to use. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html](https://curl.haxx.se/libcurl/c/CURLOPT_SSLVERSION.html) */ sslversion?: CurlSslVersion | null; /** * This HTTP/2 stream depends on another. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html) */ STREAM_DEPENDS?: Easy | null; /** * This HTTP/2 stream depends on another. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS.html) */ streamDepends?: Easy | null; /** * This HTTP/2 stream depends on another exclusively. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html) */ STREAM_DEPENDS_E?: Easy | null; /** * This HTTP/2 stream depends on another exclusively. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_DEPENDS_E.html) */ streamDependsE?: Easy | null; /** * Set this HTTP/2 stream's weight. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html) */ STREAM_WEIGHT?: string | number | boolean | null; /** * Set this HTTP/2 stream's weight. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html](https://curl.haxx.se/libcurl/c/CURLOPT_STREAM_WEIGHT.html) */ streamWeight?: string | number | boolean | null; /** * Suppress proxy CONNECT response headers from user callbacks. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html) */ SUPPRESS_CONNECT_HEADERS?: string | number | boolean | null; /** * Suppress proxy CONNECT response headers from user callbacks. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_SUPPRESS_CONNECT_HEADERS.html) */ suppressConnectHeaders?: string | number | boolean | null; /** * Enable TCP Fast Open. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html) */ TCP_FASTOPEN?: string | number | boolean | null; /** * Enable TCP Fast Open. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_FASTOPEN.html) */ tcpFastOpen?: string | number | boolean | null; /** * Enable TCP keep-alive. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html) */ TCP_KEEPALIVE?: string | number | boolean | null; /** * Enable TCP keep-alive. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPALIVE.html) */ tcpKeepAlive?: string | number | boolean | null; /** * Maximum number of keep-alive probes. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html) */ TCP_KEEPCNT?: string | number | boolean | null; /** * Maximum number of keep-alive probes. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPCNT.html) */ tcpKeepCnt?: string | number | boolean | null; /** * Idle time before sending keep-alive. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html) */ TCP_KEEPIDLE?: string | number | boolean | null; /** * Idle time before sending keep-alive. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPIDLE.html) */ tcpKeepIdle?: string | number | boolean | null; /** * Interval between keep-alive probes. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html) */ TCP_KEEPINTVL?: string | number | boolean | null; /** * Interval between keep-alive probes. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_KEEPINTVL.html) */ tcpKeepIntvl?: string | number | boolean | null; /** * Disable the Nagle algorithm. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html) */ TCP_NODELAY?: string | number | boolean | null; /** * Disable the Nagle algorithm. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html](https://curl.haxx.se/libcurl/c/CURLOPT_TCP_NODELAY.html) */ tcpNoDelay?: string | number | boolean | null; /** * TELNET options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html) */ TELNETOPTIONS?: string[] | null; /** * TELNET options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TELNETOPTIONS.html) */ telnetOptions?: string[] | null; /** * TFTP block size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html) */ TFTP_BLKSIZE?: string | number | boolean | null; /** * TFTP block size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_BLKSIZE.html) */ tftpBlkSize?: string | number | boolean | null; /** * Do not send TFTP options requests. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html) */ TFTP_NO_OPTIONS?: string | number | boolean | null; /** * Do not send TFTP options requests. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TFTP_NO_OPTIONS.html) */ tftpNoOptions?: string | number | boolean | null; /** * Make a time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html) */ TIMECONDITION?: CurlTimeCond | null; /** * Make a time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMECONDITION.html) */ timeCondition?: CurlTimeCond | null; /** * Timeout for the entire request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html) */ TIMEOUT?: string | number | boolean | null; /** * Timeout for the entire request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT.html) */ timeout?: string | number | boolean | null; /** * Millisecond timeout for the entire request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html) */ TIMEOUT_MS?: string | number | boolean | null; /** * Millisecond timeout for the entire request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEOUT_MS.html) */ timeoutMs?: string | number | boolean | null; /** * Time value for the time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html) */ TIMEVALUE?: string | number | boolean | null; /** * Time value for the time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE.html) */ timeValue?: string | number | boolean | null; /** * Time value for the time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html) */ TIMEVALUE_LARGE?: string | number | boolean | null; /** * Time value for the time conditional request. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TIMEVALUE_LARGE.html) */ timeValueLarge?: string | number | boolean | null; /** * TLS 1.3 cipher suites to use. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html) */ TLS13_CIPHERS?: string | number | boolean | null; /** * TLS 1.3 cipher suites to use. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html) */ tls13Ciphers?: string | number | boolean | null; /** * TLS authentication password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html) */ TLSAUTH_PASSWORD?: string | number | boolean | null; /** * TLS authentication password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_PASSWORD.html) */ tlsAuthPassword?: string | number | boolean | null; /** * TLS authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html) */ TLSAUTH_TYPE?: string | number | boolean | null; /** * TLS authentication methods. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_TYPE.html) */ tlsAuthType?: string | number | boolean | null; /** * TLS authentication username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html) */ TLSAUTH_USERNAME?: string | number | boolean | null; /** * TLS authentication username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_TLSAUTH_USERNAME.html) */ tlsAuthUsername?: string | number | boolean | null; /** * Set callback for sending trailing headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html) */ TRAILERFUNCTION?: ((this: Easy) => string[] | false) | null; /** * Set callback for sending trailing headers. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRAILERFUNCTION.html) */ trailerFunction?: ((this: Easy) => string[] | false) | null; /** * Request Transfer-Encoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html) */ TRANSFER_ENCODING?: string | number | boolean | null; /** * Request Transfer-Encoding. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFER_ENCODING.html) */ transferEncoding?: string | number | boolean | null; /** * Use text transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html) */ TRANSFERTEXT?: string | number | boolean | null; /** * Use text transfer. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html](https://curl.haxx.se/libcurl/c/CURLOPT_TRANSFERTEXT.html) */ transferText?: string | number | boolean | null; /** * Path to a Unix domain socket. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html) */ UNIX_SOCKET_PATH?: string | number | boolean | null; /** * Path to a Unix domain socket. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNIX_SOCKET_PATH.html) */ unixSocketPath?: string | number | boolean | null; /** * Do not restrict authentication to original host. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html) */ UNRESTRICTED_AUTH?: string | number | boolean | null; /** * Do not restrict authentication to original host. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html](https://curl.haxx.se/libcurl/c/CURLOPT_UNRESTRICTED_AUTH.html) */ unrestrictedAuth?: string | number | boolean | null; /** * Sets the interval at which connection upkeep are performed. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html) */ UPKEEP_INTERVAL_MS?: string | number | boolean | null; /** * Sets the interval at which connection upkeep are performed. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPKEEP_INTERVAL_MS.html) */ upkeepIntervalMs?: string | number | boolean | null; /** * Upload data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html) */ UPLOAD?: string | number | boolean | null; /** * Upload data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD.html) */ upload?: string | number | boolean | null; /** * Set upload buffer size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html) */ UPLOAD_BUFFERSIZE?: string | number | boolean | null; /** * Set upload buffer size. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_BUFFERSIZE.html) */ uploadBufferSize?: string | number | boolean | null; /** * Set upload flags. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html) */ UPLOAD_FLAGS?: string | number | boolean | null; /** * Set upload flags. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html](https://curl.haxx.se/libcurl/c/CURLOPT_UPLOAD_FLAGS.html) */ uploadFlags?: string | number | boolean | null; /** * URL to work on. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_URL.html) */ URL?: string | number | boolean | null; /** * URL to work on. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_URL.html](https://curl.haxx.se/libcurl/c/CURLOPT_URL.html) */ url?: string | number | boolean | null; /** * Use TLS/SSL. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html](https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html) */ USE_SSL?: CurlUseSsl | null; /** * Use TLS/SSL. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html](https://curl.haxx.se/libcurl/c/CURLOPT_USE_SSL.html) */ useSsl?: CurlUseSsl | null; /** * User-Agent: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html) */ USERAGENT?: string | number | boolean | null; /** * User-Agent: header. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERAGENT.html) */ userAgent?: string | number | boolean | null; /** * Username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html) */ USERNAME?: string | number | boolean | null; /** * Username. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERNAME.html) */ username?: string | number | boolean | null; /** * Username and password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html) */ USERPWD?: string | number | boolean | null; /** * Username and password. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html](https://curl.haxx.se/libcurl/c/CURLOPT_USERPWD.html) */ userpwd?: string | number | boolean | null; /** * Display verbose information. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html) */ VERBOSE?: string | number | boolean | null; /** * Display verbose information. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html](https://curl.haxx.se/libcurl/c/CURLOPT_VERBOSE.html) */ verbose?: string | number | boolean | null; /** * Transfer multiple files according to a filename pattern. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html](https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html) */ WILDCARDMATCH?: string | number | boolean | null; /** * Transfer multiple files according to a filename pattern. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html](https://curl.haxx.se/libcurl/c/CURLOPT_WILDCARDMATCH.html) */ wildcardMatch?: string | number | boolean | null; /** * Callback for writing data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html) */ WRITEFUNCTION?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Callback for writing data. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_WRITEFUNCTION.html) */ writeFunction?: | ((this: Easy, data: Buffer, size: number, nmemb: number) => number) | null; /** * Set WebSocket options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html) */ WS_OPTIONS?: CurlWsOptions | null; /** * Set WebSocket options. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html](https://curl.haxx.se/libcurl/c/CURLOPT_WS_OPTIONS.html) */ wsOptions?: CurlWsOptions | null; /** * Callback for progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html) */ XFERINFOFUNCTION?: | (( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number | CurlProgressFunc) | null; /** * Callback for progress meter. * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html](https://curl.haxx.se/libcurl/c/CURLOPT_XFERINFOFUNCTION.html) */ xferInfoFunction?: | (( this: Easy, dltotal: number, dlnow: number, ultotal: number, ulnow: number ) => number | CurlProgressFunc) | null; /** * OAuth2 bearer token. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html](https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html) */ XOAUTH2_BEARER?: string | number | boolean | null; /** * OAuth2 bearer token. See * * Official libcurl documentation: [https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html](https://curl.haxx.se/libcurl/c/CURLOPT_XOAUTH2_BEARER.html) */ xoauth2Bearer?: string | number | boolean | null;};Modifiers
@public
type CurlyResponseBodyParser
type CurlyResponseBodyParser = (data: Buffer, header: HeaderInfo[]) => any;type CurlyResponseBodyParsersProperty
type CurlyResponseBodyParsersProperty = { [key: string]: CurlyResponseBodyParser;};type DataCallbackOptions
type DataCallbackOptions = 'READFUNCTION' | 'HEADERFUNCTION' | 'WRITEFUNCTION';type FileInfo
type FileInfo = { fileType: CurlFileType; fileName: string; time: Date; perm: number; uid: number; gid: number; size: number; hardLinks: number; strings: { time: string; perm: string; user: string; group: string; target: string | null; };};This is the object passed as first parameter to the callback set with the
CHUNK_BGN_FUNCTIONoption.Modifiers
@public
type HeaderInfo
type HeaderInfo = { result?: { version: string; code: number; reason: string; };} & { 'Set-Cookie'?: string[];} & { [headerKey: string]: string;};Whe data parsing is enabled on the Curl instance, the headers parameter passed to the
endevent's callback will be one array of this type.Modifiers
@public
type HttpPostField
type HttpPostField = | { /** * Field name */ name: string; /** * Field contents */ contents: string; } | { /** * Field name */ name: string; /** * File path */ file: string; /** * Content-Type */ type?: string; /** * File name to be used when uploading */ filename?: string; };The
HTTPPOSToption accepts an array with this type.Modifiers
@public
type MultiOptionName
type MultiOptionName = | 'CHUNK_LENGTH_PENALTY_SIZE' | 'CONTENT_LENGTH_PENALTY_SIZE' | 'MAX_CONCURRENT_STREAMS' | 'MAX_HOST_CONNECTIONS' | 'MAX_PIPELINE_LENGTH' | 'MAX_TOTAL_CONNECTIONS' | 'MAXCONNECTS' | 'NETWORK_CHANGED' | 'PUSHFUNCTION';Modifiers
@public
type ProgressCallbackOptions
type ProgressCallbackOptions = 'PROGRESSFUNCTION' | 'XFERINFOFUNCTION';type StringListOptions
type StringListOptions = | 'CONNECT_TO' | 'HTTP200ALIASES' | 'HTTPHEADER' | 'MAIL_RCPT' | 'PROXYHEADER' | 'POSTQUOTE' | 'PREQUOTE' | 'QUOTE' | 'RESOLVE' | 'TELNETOPTIONS';Package Files (63)
- dist/Curl.d.ts
- dist/CurlEasyError.d.ts
- dist/CurlError.d.ts
- dist/CurlMime.d.ts
- dist/CurlMimePart.d.ts
- dist/CurlMultiError.d.ts
- dist/CurlSharedError.d.ts
- dist/Easy.d.ts
- dist/Multi.d.ts
- dist/Share.d.ts
- dist/curly.d.ts
- dist/enum/CurlAuth.d.ts
- dist/enum/CurlChunk.d.ts
- dist/enum/CurlCode.d.ts
- dist/enum/CurlFeature.d.ts
- dist/enum/CurlFileType.d.ts
- dist/enum/CurlFnMatchFunc.d.ts
- dist/enum/CurlFollow.d.ts
- dist/enum/CurlFtpMethod.d.ts
- dist/enum/CurlFtpSsl.d.ts
- dist/enum/CurlGlobalInit.d.ts
- dist/enum/CurlGssApi.d.ts
- dist/enum/CurlHeader.d.ts
- dist/enum/CurlHsts.d.ts
- dist/enum/CurlHttpVersion.d.ts
- dist/enum/CurlInfoDebug.d.ts
- dist/enum/CurlIpResolve.d.ts
- dist/enum/CurlMimeOpt.d.ts
- dist/enum/CurlMultiNetworkChanged.d.ts
- dist/enum/CurlNetrc.d.ts
- dist/enum/CurlPause.d.ts
- dist/enum/CurlPipe.d.ts
- dist/enum/CurlPreReqFunc.d.ts
- dist/enum/CurlProgressFunc.d.ts
- dist/enum/CurlProtocol.d.ts
- dist/enum/CurlProxy.d.ts
- dist/enum/CurlPush.d.ts
- dist/enum/CurlPx.d.ts
- dist/enum/CurlReadFunc.d.ts
- dist/enum/CurlRtspRequest.d.ts
- dist/enum/CurlShareLock.d.ts
- dist/enum/CurlShareOption.d.ts
- dist/enum/CurlSshAuth.d.ts
- dist/enum/CurlSshKey.d.ts
- dist/enum/CurlSslOpt.d.ts
- dist/enum/CurlSslVersion.d.ts
- dist/enum/CurlTimeCond.d.ts
- dist/enum/CurlUploadFlag.d.ts
- dist/enum/CurlUseSsl.d.ts
- dist/enum/CurlVersion.d.ts
- dist/enum/CurlWriteFunc.d.ts
- dist/enum/CurlWs.d.ts
- dist/enum/SocketState.d.ts
- dist/generated/CurlInfo.d.ts
- dist/generated/CurlOption.d.ts
- dist/generated/MultiOption.d.ts
- dist/index.d.ts
- dist/parseHeaders.d.ts
- dist/types/CurlVersionInfoNativeBinding.d.ts
- dist/types/CurlWsFrame.d.ts
- dist/types/FileInfo.d.ts
- dist/types/Http2PushFrameHeaders.d.ts
- dist/types/HttpPostField.d.ts
Dependencies (7)
Dev Dependencies (40)
- @commitlint/cli
- @electron/rebuild
- @eslint/eslintrc
- @eslint/js
- @microsoft/api-documenter
- @microsoft/api-extractor
- @octokit/rest
- @types/body-parser
- @types/cookie-parser
- @types/express
- @types/formidable
- @types/node
- @vitest/coverage-v8
- cheerio
- clang-format
- cookie-parser
- electron
- eslint
- eslint-plugin-prettier
- express
- formidable
- globals
- http-auth
- http-auth-connect
- husky
- lint-staged
- node-abi
- np
- prettier
- progress
- semver
- sort-package-json
- tsx
- typedoc
- typedoc-plugin-ga
- typedoc-plugin-nojekyll
- typescript
- typescript-eslint
- vitest
- ws
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/node-libcurl.
- Markdown[](https://www.jsdocs.io/package/node-libcurl)
- HTML<a href="https://www.jsdocs.io/package/node-libcurl"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 14161 ms. - Missing or incorrect documentation? Open an issue for this package.
