simulatePOST method

void simulatePOST(
  1. RegExp urlPattern,
  2. SimulateResponse response
)

Defines POST simulated response for urlPattern.

Implementation

void simulatePOST(RegExp urlPattern, SimulateResponse response) {
  _postPatterns[urlPattern] = response;
}