Lenguaje

DefaultConnectionReuseStrategy.KeepAlive(IHttpResponse, IHttpContext) Método

Definición

Determina si la conexión puede permanecer abierta después de una respuesta.

[Android.Runtime.Register("keepAlive", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetKeepAlive_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual bool KeepAlive(Org.Apache.Http.IHttpResponse? response, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("keepAlive", "(Lorg/apache/http/HttpResponse;Lorg/apache/http/protocol/HttpContext;)Z", "GetKeepAlive_Lorg_apache_http_HttpResponse_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member KeepAlive : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> bool
override this.KeepAlive : Org.Apache.Http.IHttpResponse * Org.Apache.Http.Protocol.IHttpContext -> bool

Parámetros

response
IHttpResponse

Respuesta HTTP al proceso.

context
IHttpContext

Contexto HTTP asociado a la operación.

Devoluciones

true si se puede reutilizar la conexión; de lo contrario, false.

Implementaciones

Atributos

Comentarios

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a