UNPKG

@gatling.io/http

Version:

Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).

22 lines (21 loc) 758 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Proxy = void 0; const jvm_types_1 = require("@gatling.io/jvm-types"); const wrapProxy = (_underlying) => ({ _underlying, http: () => wrapProxy(_underlying.http()), https: () => wrapProxy(_underlying.https()), socks4: () => wrapProxy(_underlying.socks4()), socks5: () => wrapProxy(_underlying.socks5()), credentials: (username, password) => wrapProxy(_underlying.credentials(username, password)) }); /** * Bootstrap the DSL for defining a Proxy * * @param host - the proxy host * @param port - the proxy prot * @returns the next DSL step */ const Proxy = (host, port) => wrapProxy(jvm_types_1.HttpDsl.Proxy(host, port)); exports.Proxy = Proxy;