言語

DefaultConnectionKeepAliveStrategy.GetKeepAliveDuration メソッド

定義

サーバー要求のキープアライブ期間を取得します。

[Android.Runtime.Register("getKeepAliveDuration", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)J", "GetGetKeepAliveDuration_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual long GetKeepAliveDuration(Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("getKeepAliveDuration", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)J", "GetGetKeepAliveDuration_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member GetKeepAliveDuration : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> int64
override this.GetKeepAliveDuration : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> int64

パラメーター

response
IHttpResponse
context
IHttpContext

返品

要求された期間 (ミリ秒単位)、または使用できないか無効な場合に -1。

実装

属性

注釈

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象