Skip to content

@caido/quickjs-types / llrt/https

llrt/https

Classes

Agent

An Agent is responsible for managing connection persistence and reuse for HTTP clients. Currently only a small subset of the options are supported.

Constructors

Constructor

new Agent(opts?: AgentOptions): Agent

Parameters
ParameterType
opts?AgentOptions
Returns

Agent

Interfaces

AgentOptions

Properties

ca?

optional ca: string | Buffer | (string | Buffer)[]

Optionally override the trusted CA certificates. Default is to trust the well-known CAs curated by Mozilla. Mozilla's CAs are completely replaced when CAs are explicitly specified using this option.

rejectUnauthorized?

optional rejectUnauthorized: boolean

Whether to reject unauthorized certificates. Default is true.