MCPcopy
hub / github.com/triggerdotdev/trigger.dev / normalizeHttpMethod

Function normalizeHttpMethod

packages/trigger-sdk/src/v3/retry.ts:129–135  ·  view source on GitHub ↗
(input: RequestInfo | URL | string, init?: RequestInit)

Source from the content-addressed store, hash-verified

127};
128
129const normalizeHttpMethod = (input: RequestInfo | URL | string, init?: RequestInit): string => {
130 if (typeof input === "string" || input instanceof URL) {
131 return (init?.method || "GET").toUpperCase();
132 }
133
134 return (input.method ?? init?.method ?? "GET").toUpperCase();
135};
136
137const fetchHttpHandlerStorage = new AsyncLocalStorage<Array<HttpHandler>>();
138

Callers 2

doFetchRequestFunction · 0.85
createFetchAttributesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…