Skip to main content
Version: Next

HttpRequestOptions

Additional options for HTTP requests that need to be handled separately before passing to BaseHttpClient.

Hierarchy

Index

Properties

optionalinheritedbody

body?: Readable

optionalinheritedcookieJar

cookieJar?: CookieJar

optionalinheritedencoding

encoding?: BufferEncoding

optionalinheritedfollowRedirect

followRedirect?: boolean | (response) => boolean

optionalform

form?: Record<string, string>

A form to be sent in the HTTP request body (URL encoding will be used)

optionalinheritedheaders

headers?: Headers

optionaljson

json?: unknown

Arbitrary object to be JSON-serialized and sent as the HTTP request body

optionalinheritedmethod

optionalpassword

password?: string

Basic HTTP Auth password

optionalinheritedproxyUrl

proxyUrl?: string

optionalsearchParams

searchParams?: SearchParams

Search (query string) parameters to be appended to the request URL

optionalinheritedsignal

signal?: AbortSignal

optionalinheritedtimeout

timeout?: number

inheritedurl

url: string | URL

optionalusername

username?: string

Basic HTTP Auth username