ResponseCache.Get Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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;", "GetGet_Ljava_net_URI_Ljava_lang_String_Ljava_util_Map_Handler")]
public abstract Java.Net.CacheResponse? Get (Java.Net.URI? uri, string? rqstMethod, System.Collections.Generic.IDictionary<string,System.Collections.Generic.IList<string>>? rqstHeaders);
[<Android.Runtime.Register("get", "(Ljava/net/URI;Ljava/lang/String;Ljava/util/Map;)Ljava/net/CacheResponse;", "GetGet_Ljava_net_URI_Ljava_lang_String_Ljava_util_Map_Handler")>]
abstract member 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
- rqstMethod
- String
a String
representing the request
method
- rqstHeaders
- 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.
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.