(pattern: string)
| 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, |