Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Multi

This is a Node.js wrapper around the binding native Multi class.

The only extra is that it provides a static field option.

Hierarchy

Index

Properties

Static option

option: MultiOption = bindings.Curl.multi

Options to be used with setOpt.

See the official documentation of curl_multi_setopt() for reference.

CURLMOPT_MAXCONNECTS becomes Multi.option.MAXCONNECTS

Methods

addHandle

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()

    Returns void

getCount

  • getCount(): number
  • Returns the number of {@link "Easy".Easy | 'Easy'} handles that are currently inside this instance

    Returns number

onMessage

  • 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()

    Pass null to remove the current callback set.

    Parameters

    Returns this

removeHandle

setOpt

strError

Generated using TypeDoc