Dil

HttpResponseCache.Get Method

Definition

Retrieve the cached response based on the requesting uri, request method and request headers.

[Android.Runtime.Register("get", "(Ljava/net/URI;Ljava/lang/String;Ljava/util/Map;)Ljava/net/CacheResponse;", "")]
public override Java.Net.CacheResponse? Get(Java.Net.URI? uri, string? requestMethod, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? requestHeaders);
[<Android.Runtime.Register("get", "(Ljava/net/URI;Ljava/lang/String;Ljava/util/Map;)Ljava/net/CacheResponse;", "")>]
override this.Get : Java.Net.URI * string * System.Collections.Generic.IDictionary<string, System.Collections.Generic.IList<string>> -> Java.Net.CacheResponse

Parameters

uri
URI

a URI used to reference the requested network resource

requestMethod
String

a String representing the request method

requestHeaders
IDictionary<String,IList<String>>
  • a Map from request header field names to lists of field values representing the current request headers

Returns

a CacheResponse instance if available from cache, or null otherwise

Attributes

Remarks

Retrieve the cached response based on the requesting uri, request method and request headers. Typically this method is called by the protocol handler before it sends out the request to get the network resource. If a cached response is returned, that resource is used instead.

Android reference for android.net.http.HttpResponseCache.get.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to