@gatling.io/http
Version:
Gatling JS is a JavaScript/TypeScript interface for the [Gatling load testing tool](https://gatling.io/).
45 lines (44 loc) • 1.11 kB
TypeScript
import { Wrapper } from "@gatling.io/core";
import JvmProxy = io.gatling.javaapi.http.Proxy;
export interface Proxy extends Wrapper<JvmProxy> {
/**
* Define this proxy is an HTTP one (default)
*
* @returns a new Proxy instance
*/
http(): Proxy;
/**
* Define this proxy is an HTTPS one
*
* @returns a new Proxy instance
*/
https(): Proxy;
/**
* Define this proxy is an SOCKS4 once
*
* @returns a new Proxy instance
*/
socks4(): Proxy;
/**
* Define this proxy is an SOCKS5 once
*
* @returns a new Proxy instance
*/
socks5(): Proxy;
/**
* Define some Basic Auth credentials for this proxy
*
* @param username - the username
* @param password - the password
* @returns a new Proxy instance
*/
credentials(username: string, password: string): Proxy;
}
/**
* Bootstrap the DSL for defining a Proxy
*
* @param host - the proxy host
* @param port - the proxy prot
* @returns the next DSL step
*/
export declare const Proxy: (host: string, port: number) => Proxy;