requestGET method
Future<HttpResponse>
requestGET(
- HttpClient client,
- String url, {
- Map<
String, String> ? headers, - Authorization? authorization,
- Map<
String, String?> ? queryParameters, - bool noQueryString = false,
- String? accept,
- String? responseType,
- ProgressListener? progressListener,
Implementation
Future<HttpResponse> requestGET(HttpClient client, String url,
{Map<String, String>? headers,
Authorization? authorization,
Map<String, String?>? queryParameters,
bool noQueryString = false,
String? accept,
String? responseType,
ProgressListener? progressListener}) async {
var requestURL = buildRequestURL(client, url,
authorization: authorization,
queryParameters: queryParameters,
noQueryString: noQueryString);
var requestHeaders = buildRequestHeaders(client, HttpMethod.GET, url,
headers: headers, authorization: authorization, accept: accept);
requestURL = await client._interceptRequest(
HttpMethod.GET, requestURL, requestHeaders);
return submitHttpRequest(
client,
HttpRequest(HttpMethod.GET, url, requestURL,
authorization: authorization,
queryParameters: queryParameters,
withCredentials: _withCredentials(client, authorization),
requestHeaders: requestHeaders,
responseType: responseType),
progressListener,
client.logRequests);
}