getCachedRequest method

HttpResponse? getCachedRequest(
  1. HttpClient httpClient,
  2. HttpMethod method,
  3. String path, {
  4. bool fullPath = false,
  5. Credential? authorization,
  6. Map<String, String?>? queryParameters,
  7. Object? body,
  8. String? contentType,
  9. String? accept,
})

Gets a request already in cache using httpClient.

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);
}