requestHttpClient method

Future<HttpResponse> requestHttpClient(
  1. HttpClient client,
  2. HttpMethod method,
  3. String path,
  4. bool fullPath,
  5. Map? parameters,
  6. Object? body,
)

Method responsible to request the HttpClient.

Can be overwritten by other implementations.

Implementation

Future<HttpResponse> requestHttpClient(
  HttpClient client,
  HttpMethod method,
  String path,
  bool fullPath,
  Map? parameters,
  Object? body,
) {
  var queryParameters = toQueryParameters(parameters);
  return client.request(
    method,
    path,
    fullPath: fullPath,
    parameters: queryParameters,
    body: body,
  );
}