MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / fetchMethod

Function fetchMethod

packages/server-e2e/src/report.ts:588–592  ·  view source on GitHub ↗
(input: Parameters<typeof fetch>[0], init: Parameters<typeof fetch>[1])

Source from the content-addressed store, hash-verified

586}
587
588function fetchMethod(input: Parameters<typeof fetch>[0], init: Parameters<typeof fetch>[1]): string {
589 if (init?.method) return init.method.toUpperCase();
590 if (input instanceof Request) return input.method.toUpperCase();
591 return 'GET';
592}
593
594function fetchUrl(input: Parameters<typeof fetch>[0]): string {
595 if (typeof input === 'string') return input;

Callers 1

fetchWithReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected