BidirectionalStream.ICallback.OnResponseTrailersReceived Method

Definition

Invoked when trailers are received before closing the stream.

[Android.Runtime.Register("onResponseTrailersReceived", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Landroid/net/http/HeaderBlock;)V", "GetOnResponseTrailersReceived_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Landroid_net_http_HeaderBlock_Handler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnResponseTrailersReceived (Android.Net.Http.BidirectionalStream stream, Android.Net.Http.UrlResponseInfo info, Android.Net.Http.HeaderBlock trailers);
[<Android.Runtime.Register("onResponseTrailersReceived", "(Landroid/net/http/BidirectionalStream;Landroid/net/http/UrlResponseInfo;Landroid/net/http/HeaderBlock;)V", "GetOnResponseTrailersReceived_Landroid_net_http_BidirectionalStream_Landroid_net_http_UrlResponseInfo_Landroid_net_http_HeaderBlock_Handler:Android.Net.Http.BidirectionalStream/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnResponseTrailersReceived : Android.Net.Http.BidirectionalStream * Android.Net.Http.UrlResponseInfo * Android.Net.Http.HeaderBlock -> unit

Parameters

stream
BidirectionalStream

the stream on which response trailers were received. <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

trailers
HeaderBlock

the trailers received

Attributes

Remarks

Invoked when trailers are received before closing the stream. Only invoked when server sends trailers, which it may not. May be invoked while there is read data remaining in local buffer.

Default implementation takes no action.

Java documentation for android.net.http.BidirectionalStream.Callback.onResponseTrailersReceived(android.net.http.BidirectionalStream, android.net.http.UrlResponseInfo, android.net.http.HeaderBlock).

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