getSimulationPatternsByMethod method
/////////
Returns for parameter method
a Map with RegExp patterns as key and SimulateResponse as value.
Implementation
/// Returns for parameter [method] a [Map] with [RegExp] patterns as key and [SimulateResponse] as value.
Map<RegExp, SimulateResponse> getSimulationPatternsByMethod(
HttpMethod method) {
switch (method) {
case HttpMethod.GET:
return _getPatterns;
case HttpMethod.OPTIONS:
return _optionsPatterns;
case HttpMethod.PUT:
return _putPatterns;
case HttpMethod.POST:
return _postPatterns;
default:
return _anyPatterns;
}
}