MCPcopy
hub / github.com/mswjs/msw / matchMethod

Method matchMethod

src/core/handlers/HttpHandler.ts:175–179  ·  view source on GitHub ↗
(actualMethod: string)

Source from the content-addressed store, hash-verified

173 }
174
175 private matchMethod(actualMethod: string): boolean {
176 return this.info.method instanceof RegExp
177 ? this.info.method.test(actualMethod)
178 : isStringEqual(this.info.method, actualMethod)
179 }
180
181 protected extendResolverArgs(args: {
182 request: Request

Callers 1

predicateMethod · 0.95

Calls 2

isStringEqualFunction · 0.90
testMethod · 0.80

Tested by

no test coverage detected