requestURL method
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,
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,
);
}