BidirectionalStream.ICallback.OnFailed 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 if the stream failed for any reason after BidirectionalStream#start
.
[Android.Runtime.Register("onFailed", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Landroid/net/http/HttpException;)V", "GetOnFailed_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Landroid_net_http_HttpException_Handler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnFailed (Android.Net.Http.BidirectionalStream stream, Android.Net.Http.UrlResponseInfo? info, Android.Net.Http.HttpException error);
[<Android.Runtime.Register("onFailed", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Landroid/net/http/HttpException;)V", "GetOnFailed_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Landroid_net_http_HttpException_Handler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnFailed : Android.Net.Http.BidirectionalStream * Android.Net.Http.UrlResponseInfo * Android.Net.Http.HttpException -> unit
Parameters
- stream
- BidirectionalStream
the stream which has failed. <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 BidirectionalStream.Builder#build
.</strong>
However, method calls on this object will have the same effects as calls on the
original BidirectionalStream
.
- info
- UrlResponseInfo
the response information. May be null
if no response was received.
- error
- HttpException
information about the failure
- Attributes
Remarks
Invoked if the stream failed for any reason after BidirectionalStream#start
. HTTP/2 error codes are mapped to NetworkException#getErrorCode
codes. Once invoked, no further BidirectionalStream.Callback
methods will be invoked.
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.