UrlRequest.ICallback.OnResponseStarted(UrlRequest, UrlResponseInfo) 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.
Invoked when the final set of headers, after all redirects, is received.
[Android.Runtime.Register("onResponseStarted", "(Landroid/net/http/UrlRequest;Landroid/net/http/UrlResponseInfo;)V", "GetOnResponseStarted_Landroid_net_http_UrlRequest_Landroid_net_http_UrlResponseInfo_Handler:Android.Net.Http.UrlRequest/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnResponseStarted (Android.Net.Http.UrlRequest request, Android.Net.Http.UrlResponseInfo info);
[<Android.Runtime.Register("onResponseStarted", "(Landroid/net/http/UrlRequest;Landroid/net/http/UrlResponseInfo;)V", "GetOnResponseStarted_Landroid_net_http_UrlRequest_Landroid_net_http_UrlResponseInfo_Handler:Android.Net.Http.UrlRequest/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnResponseStarted : Android.Net.Http.UrlRequest * Android.Net.Http.UrlResponseInfo -> unit
Parameters
- request
- UrlRequest
Request that started to get response. <strong>This is not guaranteed to be
the same object as the one received by other callbacks, nor is it guaranteed to be
the one returned by URLRequest.Builder#build
.</strong> However, method
calls on this object will have the same effects as calls on the original
URLRequest
.
- info
- UrlResponseInfo
Response information.
- Attributes
Remarks
Invoked when the final set of headers, after all redirects, is received. Will only be invoked once for each request.
With the exception of Callback#onCanceled onCanceled()
, no other Callback
method will be invoked for the request, including Callback#onSucceeded onSucceeded()
and Callback#onFailed onFailed()
, until UrlRequest#read UrlRequest.read()
is called to attempt to start reading the response body.
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.