UNPKG

aws-crt

Version:

NodeJS bindings to the aws-c-* libraries

34 lines 1.5 kB
"use strict"; /* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); var HttpProxyAuthenticationType; (function (HttpProxyAuthenticationType) { HttpProxyAuthenticationType[HttpProxyAuthenticationType["None"] = 0] = "None"; HttpProxyAuthenticationType[HttpProxyAuthenticationType["Basic"] = 1] = "Basic"; })(HttpProxyAuthenticationType = exports.HttpProxyAuthenticationType || (exports.HttpProxyAuthenticationType = {})); ; /** Options used when connecting to an HTTP endpoint via a proxy */ class HttpProxyOptions { constructor(host_name, port, auth_method = HttpProxyAuthenticationType.None, auth_username, auth_password) { this.host_name = host_name; this.port = port; this.auth_method = auth_method; this.auth_username = auth_username; this.auth_password = auth_password; } } exports.HttpProxyOptions = HttpProxyOptions; //# sourceMappingURL=http.js.map