Deno.CreateHttpClientOptions

UNSTABLE: New API, yet to be vetted.

The options used when creating a Deno.HttpClient.

interface CreateHttpClientOptions {
allowHost?: boolean;
caCerts?: string[];
certChain?: string;
http1?: boolean;
http2?: boolean;
poolIdleTimeout?: number | false;
poolMaxIdlePerHost?: number;
privateKey?: string;
proxy?: Proxy;
}

§Properties

§
allowHost?: boolean
[src]

Whether setting the host header is allowed or not.

§
caCerts?: string[]
[src]

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.

§
certChain?: string
[src]

PEM formatted client certificate chain.

§
http1?: boolean
[src]

Whether HTTP/1.1 is allowed or not.

§
http2?: boolean
[src]

Whether HTTP/2 is allowed or not.

§
poolIdleTimeout?: number | false
[src]

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

§
poolMaxIdlePerHost?: number
[src]

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

§
privateKey?: string
[src]

PEM formatted (RSA or PKCS8) private key of client certificate.

§
proxy?: Proxy
[src]

A HTTP proxy to use for new connections.