setMockResponse method

void setMockResponse(
  1. String path,
  2. AdapterResponse response
)

设置模拟响应

path 请求路径 response 模拟的响应

Implementation

void setMockResponse(String path, AdapterResponse response) {
  _mockConfigs[path] = _MockConfig(response: response);
}