replyOPTIONS method

void replyOPTIONS(
  1. RegExp urlPattern,
  2. String response
)

Defines a reply response for OPTIONS requests with urlPattern.

Implementation

void replyOPTIONS(RegExp urlPattern, String response) {
  simulateOPTIONS(urlPattern, (u, p) => response);
}