getCachedRequest method
HttpResponse?
getCachedRequest(
- HttpClient httpClient,
- HttpMethod method,
- String path, {
- bool fullPath = false,
- Credential? authorization,
- Map<
String, String?> ? queryParameters, - Object? body,
- String? contentType,
- String? accept,
Gets a request already in cache using httpClient.
- See getCachedRequestURL.
Implementation
HttpResponse? getCachedRequest(
HttpClient httpClient,
HttpMethod method,
String path, {
bool fullPath = false,
Credential? authorization,
Map<String, String?>? queryParameters,
Object? body,
String? contentType,
String? accept,
}) {
var requestURL = httpClient.buildMethodRequestURL(
method,
path,
fullPath,
queryParameters,
);
return getCachedRequestURL(
method,
requestURL,
authorization: authorization,
queryParameters: queryParameters,
body: body,
contentType: contentType,
accept: accept,
);
}