Skip to main content

CreateHttpClientOptions

interface Deno.CreateHttpClientOptions

The options used when creating a Deno.HttpClient.

Properties Jump to heading

optional
Jump to headingcaCerts: string[]

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.

A HTTP proxy to use for new connections.

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

optional
Jump to headingpoolIdleTimeout: number | false

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

optional
Jump to headinghttp1: boolean = true

Whether HTTP/1.1 is allowed or not.

optional
Jump to headinghttp2: boolean = true

Whether HTTP/2 is allowed or not.

optional
Jump to headingallowHost: boolean = false

Whether setting the host header is allowed or not.

Back to top