Skip to content

Latest commit

 

History

History
65 lines (35 loc) · 1.47 KB

File metadata and controls

65 lines (35 loc) · 1.47 KB

Interface: CustomFetchOptions<Method, BodyType>

💗 Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


Fetch-style request options passed to a custom fetch implementation.

Type Parameters

Type Parameter Default type
Method -
BodyType undefined

Properties

body

• body: BodyType

The request body content to send to the server


headers

• headers: Record<string, string>

HTTP Headers


method

• method: Method

The request method


redirect

• redirect: "manual"

See Request.redirect


duplex?

• optional duplex?: "half"

Request streaming mode. Set to "half" when body is a ReadableStream.


signal?

• optional signal?: AbortSignal

Depending on whether HttpRequestOptions.signal was used, if so, it is the value passed, otherwise undefined