node-libcurl
Version:
The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl
31 lines • 1.14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CurlWriteFunc = 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/e1be8254534898fccafc5d6cd04f6235f283cfbd/include/curl/curl.h#L252
/**
* Special return codes for `WRITEFUNCTION` option
*
* `CURL_WRITEFUNC_PAUSE` becomes `CurlWriteFunc.Pause`
*
* @public
*/
var CurlWriteFunc;
(function (CurlWriteFunc) {
/**
* This is a magic return code for the write callback that, when returned,
* will signal libcurl to pause receiving on the current transfer.
*/
CurlWriteFunc[CurlWriteFunc["Pause"] = 268435457] = "Pause";
/**
* This is a magic return code for the write callback that, when returned,
* will signal an error from the callback.
*/
CurlWriteFunc[CurlWriteFunc["Abort"] = 4294967295] = "Abort";
})(CurlWriteFunc || (exports.CurlWriteFunc = CurlWriteFunc = {}));
//# sourceMappingURL=CurlWriteFunc.js.map