Skip to main content

Interface: HTTPParams

@divine/uri.HTTPParams

HTTP configuration parameters.

Hierarchy

  • URIParams

    HTTPParams

Properties

agent

Optional agent: Agent

Agent to use for connection pooling.

Defined in

uri/src/protocols/http.ts:18


console

Optional console: Console

A Console to use for debug logging.

Inherited from

URIParams.console

Defined in

uri/src/selectors.ts:64


maxRedirects

Optional maxRedirects: number

The maximum number of 3xx redirects to allow before a request is cancelled.

Defined in

uri/src/protocols/http.ts:21


timeout

Optional timeout: number

The request timeout.

Defined in

uri/src/protocols/http.ts:24


tls

Optional tls: SecureContextOptions & { rejectUnauthorized?: boolean ; servername?: string }

SSL/TLS parameters.

Defined in

uri/src/protocols/http.ts:27