MCPcopy
hub / github.com/unjs/ofetch / isPayloadMethod

Function isPayloadMethod

src/utils.ts:13–15  ·  view source on GitHub ↗
(method = "GET")

Source from the content-addressed store, hash-verified

11 Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
12);
13export function isPayloadMethod(method = "GET"): boolean {
14 return payloadMethods.has(method.toUpperCase());
15}
16
17export function isJSONSerializable(value: any): boolean {
18 if (value === undefined) {

Callers 2

onErrorFunction · 0.90
$fetchRawFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…