OptionalRequestHandlertype

(request: Request, ...args: A) => Response | Promise<Response> | undefined
Type
Request
Response
Promise

An optional request handler that may return undefined to indicate no match.