UNPKG

node-libcurl

Version:

The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl

35 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CurlFollow = 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/8c4fbcbc4f6e158b3b2a644d5ec6b4b38183b081/include/curl/curl.h#L177 /** * Object with constants for option bits for `CURLOPT_FOLLOWLOCATION` * * `CURLFOLLOW_ALL` becomes `CurlFollow.All` * * @public */ var CurlFollow; (function (CurlFollow) { /** * Generic follow redirects */ CurlFollow[CurlFollow["All"] = 1] = "All"; /** * Do not use the custom method in the follow-up request if the HTTP code * instructs so (301, 302, 303). */ CurlFollow[CurlFollow["ObeyCode"] = 2] = "ObeyCode"; /** * Only use the custom method in the first request, * always reset in the next. */ CurlFollow[CurlFollow["FirstOnly"] = 3] = "FirstOnly"; })(CurlFollow || (exports.CurlFollow = CurlFollow = {})); //# sourceMappingURL=CurlFollow.js.map