replyPOST method

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

Defines a reply response for POST requests with urlPattern.

Implementation

void replyPOST(RegExp urlPattern, String response) {
  simulatePOST(urlPattern, (u, p) => response);
}