Hierarchy

  • IHttpRequest

Properties

auth?: string
content?: string
data?: any
encoding?: string

The encoding to be used on response data.

If null, the body is returned as a Buffer. Anything else (including the default value of undefined) will be passed as the encoding parameter to toString() (meaning this is effectively 'utf8' by default). (Note: if you expect binary data, you should set encoding: null.)

headers?: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string
params?: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string
query?: string
rejectUnauthorized?: boolean

If true, the server certificate is verified against the list of supplied CAs.

Default: true.

https://nodejs.org/api/tls.html#tls_tls_connect_options_callback

strictSSL?: boolean

if true, requires SSL certificates be valid.

Defaul: true;

timeout?: number

Generated using TypeDoc