requestURL method

Future<HttpResponse> requestURL(
  1. HttpMethod method,
  2. String url, {
  3. Map<String, String>? headers,
  4. Credential? authorization,
  5. Map<String, Object?>? queryParameters,
  6. bool noQueryString = false,
  7. Object? body,
  8. String? contentType,
  9. String? accept,
  10. ProgressListener? progressListener,
})

Implementation

Future<HttpResponse> requestURL(
  HttpMethod method,
  String url, {
  Map<String, String>? headers,
  Credential? authorization,
  Map<String, Object?>? queryParameters,
  bool noQueryString = false,
  Object? body,
  String? contentType,
  String? accept,
  ProgressListener? progressListener,
}) async {
  var authorizationOr = _buildRequestAuthorization(authorization);
  var requestAuthorization = authorizationOr is Future<Authorization?>
      ? await authorizationOr
      : authorizationOr;
  return _clientRequester.request(
    this,
    method,
    url,
    headers: headers,
    authorization: requestAuthorization,
    queryParameters: _toParametersMapOfString(queryParameters),
    noQueryString: noQueryString,
    body: body,
    contentType: contentType,
    accept: accept,
    progressListener: progressListener,
  );
}