Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface FetchOptions

Options for an HTTP request

Hierarchy

  • FetchOptions

Index

Properties

Properties

Optional body

body: string

The payload to send with the request

Optional headers

headers: Record<string, string>

HTTP headers used for the request

Optional method

method: "GET" | "POST" | "PUT" | "DELETE"

A string to set request's method. If undefined, GET will be used.