replyGET method

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

Defines a reply response for GET requests with urlPattern.

Implementation

void replyGET(RegExp urlPattern, String response) {
  simulateGET(urlPattern, (u, p) => response);
}