Interface FetchLikeOptions

The subset of a fetch RequestInit that this package produces.

A transport can ignore the fields it has no equivalent for. In particular, a transport over a raw socket API can ignore credentials, and it does not need to follow redirects; the client treats a redirect status from such a transport as an ordinary non-200 failure.

Hierarchy

  • FetchLikeOptions

Properties

body?: string
credentials?: "include" | "omit" | "same-origin"
headers?: Record<string, string>
method?: string
signal?: AbortSignal

Generated using TypeDoc