node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
31 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurlMultiNetworkChanged = void 0;
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// https://github.com/curl/curl/blob/00cb679c04ef9e0f30bd99c9dcc58c1e1928c01a/include/curl/multi.h#L410
/**
* To be used with the `NETRC` option
*
* `CURLMNC_CLEAR_CONNS` becomes `CurlMultiNetworkChanged.ClearConns`
*
* @public
*/
var CurlMultiNetworkChanged;
(function (CurlMultiNetworkChanged) {
/**
* Tells libcurl to prevent further reuse of existing connections.
* Connections that are idle will be closed. Ongoing transfers
* will continue with the connection they have.
*/
CurlMultiNetworkChanged[CurlMultiNetworkChanged["ClearConns"] = 1] = "ClearConns";
/**
* Tells libcurl to clear the DNS cache.
*/
CurlMultiNetworkChanged[CurlMultiNetworkChanged["ClearDns"] = 1] = "ClearDns";
})(CurlMultiNetworkChanged || (exports.CurlMultiNetworkChanged = CurlMultiNetworkChanged = {}));
//# sourceMappingURL=CurlMultiNetworkChanged.js.map