doRequestWithClient method

Future doRequestWithClient(
  1. HttpClient httpClient
)

Does the request using parameter httpClient.

Implementation

Future<dynamic> doRequestWithClient(HttpClient httpClient) async {
  HttpResponse httpResponse;
  if (httpCache != null) {
    httpResponse = await httpCache!.request(httpClient, httpMethod, path,
        queryParameters: _parameters, body: _body, contentType: bodyType);
  } else {
    httpResponse = await httpClient.request(httpMethod, path,
        parameters: _parameters, body: _body, contentType: bodyType);
  }

  return _processResponse(httpResponse, httpClient);
}