Named parameters for a HTTP request.
Optionalbody?: BodyInitBody to use for request.
Optionalcredentials?: "omit" | "include" | "same-origin"Send Credentials with request.
When set to true credentials will be set to same-orign
Optionalheaders?: HeadersInitHeaders to add to the request.
Optionalmethod?: "GET" | "OPTIONS" | "POST" | "PATCH"HTTP method to use for the request.
Optionalmode?: "same-origin" | "no-cors" | "cors"OptionalreferrerPolicy?: ReferrerPolicyOptionalsignal?: AbortSignalRequest signal.
URL for the request to be made against.
This object is intended to serve as the single point for all HTTP requests that are expected to send / receive json data.
This object is a wrapper for httpRequest that adds the required information to the request as well as performs validation.
When calling this fetcher, ensure that you have at least provided a
urland thebody(if methodPATCHorPOST) to make the request.