|
|
|
@ -84,26 +84,26 @@ export interface ClientOptions {
|
|
|
|
|
* Configuration of a proxy that a Client should pass requests to.
|
|
|
|
|
*/
|
|
|
|
|
proxy?: Proxy
|
|
|
|
|
/**
|
|
|
|
|
/**
|
|
|
|
|
* Configuration for dangerous settings on the client such as disabling SSL verification.
|
|
|
|
|
*/
|
|
|
|
|
danger?: DangerousSettings
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
danger?: DangerousSettings
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Configuration for dangerous settings on the client such as disabling SSL verification.
|
|
|
|
|
*
|
|
|
|
|
* @since 2.3.0
|
|
|
|
|
*/
|
|
|
|
|
export interface DangerousSettings {
|
|
|
|
|
/**
|
|
|
|
|
* Configuration for dangerous settings on the client such as disabling SSL verification.
|
|
|
|
|
*
|
|
|
|
|
* @since 2.2.0
|
|
|
|
|
* Disables SSL verification.
|
|
|
|
|
*/
|
|
|
|
|
acceptInvalidCerts?: boolean
|
|
|
|
|
/**
|
|
|
|
|
* Disables hostname verification.
|
|
|
|
|
*/
|
|
|
|
|
export interface DangerousSettings {
|
|
|
|
|
/**
|
|
|
|
|
* Disables SSL verification.
|
|
|
|
|
*/
|
|
|
|
|
acceptInvalidCerts?: boolean,
|
|
|
|
|
/**
|
|
|
|
|
* Disables hostname verification.
|
|
|
|
|
*/
|
|
|
|
|
acceptInvalidHostnames?: boolean
|
|
|
|
|
acceptInvalidHostnames?: boolean
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const ERROR_REQUEST_CANCELLED = 'Request canceled'
|
|
|
|
|