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. dynamic 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,
    noQueryString = false,
    Object? body,
    String? contentType,
    String? accept,
    ProgressListener? progressListener}) async {
  var requestAuthorization = await _buildRequestAuthorization(authorization);
  return _clientRequester.request(this, method, url,
      headers: headers,
      authorization: requestAuthorization,
      queryParameters: _toParametersMapOfString(queryParameters),
      noQueryString: noQueryString,
      body: body,
      contentType: contentType,
      accept: accept,
      progressListener: progressListener);
}