deno.com

interface Deno.CreateHttpClientOptions

The options used when creating a Deno.HttpClient.

Properties #

#caCerts: string[]
optional

A list of root certificates that will be used in addition to the default root certificates to verify the peer's certificate.

Must be in PEM format.

#proxy: Proxy
optional

A HTTP proxy to use for new connections.

#poolMaxIdlePerHost: number
optional

Sets the maximum number of idle connections per host allowed in the pool.

#poolIdleTimeout: number | false
optional

Set an optional timeout for idle sockets being kept-alive. Set to false to disable the timeout.

#http1: boolean = true
optional

Whether HTTP/1.1 is allowed or not.

#http2: boolean = true
optional

Whether HTTP/2 is allowed or not.

#allowHost: boolean = false
optional

Whether setting the host header is allowed or not.