simulateOPTIONS method

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

Defines OPTIONS simulated response for urlPattern.

Implementation

void simulateOPTIONS(RegExp urlPattern, SimulateResponse response) {
  _optionsPatterns[urlPattern] = response;
}