DefaultConnectionReuseStrategy.KeepAlive(IHttpResponse, IHttpContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the connection can remain open after a response.
[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
Parameters
- response
- IHttpResponse
The HTTP response to process.
- context
- IHttpContext
The HTTP context associated with the operation.
Returns
true if the connection can be reused; otherwise, false.
Implements
- Attributes
Remarks
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.