getURL method
Future<HttpResponse>
getURL(
- String url, {
- HttpClient? httpClient,
- bool fullPath = false,
- Credential? authorization,
- Map<
String, String?> ? parameters, - String? accept,
- OnCachedResponse? onStaleResponse,
- Duration? staleResponseDelay,
Does a GET request using url
.
- See requestURL documentation.
Implementation
Future<HttpResponse> getURL(String url,
{HttpClient? httpClient,
bool fullPath = false,
Credential? authorization,
Map<String, String?>? parameters,
String? accept,
OnCachedResponse? onStaleResponse,
Duration? staleResponseDelay}) async {
return get(
httpClient ?? HttpClient(url),
httpClient != null ? url : null,
fullPath: httpClient != null ? fullPath : false,
parameters: parameters,
accept: accept,
onStaleResponse: onStaleResponse,
staleResponseDelay: staleResponseDelay,
);
}