DefaultConnectionKeepAliveStrategy.GetKeepAliveDuration メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
サーバー要求のキープアライブ期間を取得します。
[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属性ライセンスに記載されている条件に従って使用されます。