Interface ClientConfig

Hierarchy

  • RequestInit
    • ClientConfig

Properties

agent?: boolean | Agent | ((parsedUrl: URL) => undefined | boolean | Agent)
baseUrl?: string | URL

Default Value

'https://ctan.org'

body?: null | BodyInit

A BodyInit object or null to set request's body.

compress?: boolean
counter?: number
follow?: number
headers?: HeadersInit

A Headers object, an object literal, or an array of two-item arrays to set request's headers.

highWaterMark?: number
hostname?: string
insecureHTTPParser?: boolean
method?: string

A string to set request's method.

port?: number
protocol?: string
redirect?: RequestRedirect

A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.

referrer?: string

A string whose value is a same-origin URL, "about:client", or the empty string, to set request’s referrer.

referrerPolicy?: ReferrerPolicy

A referrer policy to set request’s referrerPolicy.

signal?: null | AbortSignal

An AbortSignal to set request's signal.

size?: number
validate?: boolean

Default Value

true

Generated using TypeDoc