언어

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.

구현

특성

설명

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상