@atomist/automation-client
Version:
Atomist API for software low-level client
25 lines • 803 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const retry_1 = require("../../util/retry");
/**
* Available HTTP request methods to use with HttpClient.
*/
var HttpMethod;
(function (HttpMethod) {
HttpMethod["Get"] = "GET";
HttpMethod["Post"] = "POST";
HttpMethod["Put"] = "PUT";
HttpMethod["Delete"] = "DELETE";
HttpMethod["Options"] = "OPTIONS";
HttpMethod["Patch"] = "PATCH";
})(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {}));
/**
* Default HTTP client options each implementation to should use.
* @type {{method: HttpMethod; headers: {}; retry: WrapOptions}}
*/
exports.DefaultHttpClientOptions = {
method: HttpMethod.Get,
headers: {},
retry: retry_1.DefaultRetryOptions,
};
//# sourceMappingURL=httpClient.js.map