MCPcopy
hub / github.com/freshframework/fresh / getAllowedMethods

Method getAllowedMethods

packages/fresh/src/router.ts:63–67  ·  view source on GitHub ↗
(pattern: string)

Source from the content-addressed store, hash-verified

61 #allowed = new Map<string, Set<string>>();
62
63 getAllowedMethods(pattern: string): string[] {
64 const allowed = this.#allowed.get(pattern);
65 if (allowed === undefined) return EMPTY;
66 return Array.from(allowed);
67 }
68
69 add(
70 method: Method,

Callers 1

handlerMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected