@galihrivanto/node-libcurli
Version:
Node.js bindings for curl-impersonate library
25 lines • 848 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Multi = void 0;
// eslint-disable-next-line @typescript-eslint/no-var-requires
const bindings = require('../../lib/binding/ff/node_libcurl.node');
/**
* This is a Node.js wrapper around the binding {@link MultiNativeBinding | native Multi class}.
*
* The only extra is that it provides a static field `option`.
*
* @public
*/
class Multi extends bindings.Multi {
/**
* Options to be used with {@link setOpt | `setOpt`}.
*
* See the official documentation of [`curl_multi_setopt()`](http://curl.haxx.se/libcurl/c/curl_multi_setopt.html)
* for reference.
*
* `CURLMOPT_MAXCONNECTS` becomes `Multi.option.MAXCONNECTS`
*/
static option = bindings.Curl.multi;
}
exports.Multi = Multi;
//# sourceMappingURL=Multi.js.map