ThreadSafeClientConnManager.RequestConnection(HttpRoute, Object) Method

Definition

Creates a request for a managed connection for a route.

[Android.Runtime.Register("requestConnection", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ClientConnectionRequest;", "GetRequestConnection_Lorg_apache_http_conn_routing_HttpRoute_Ljava_lang_Object_Handler")]
public virtual Org.Apache.Http.Conn.IClientConnectionRequest? RequestConnection(Org.Apache.Http.Conn.Routing.HttpRoute? route, Java.Lang.Object? state);
[<Android.Runtime.Register("requestConnection", "(Lorg/apache/http/conn/routing/HttpRoute;Ljava/lang/Object;)Lorg/apache/http/conn/ClientConnectionRequest;", "GetRequestConnection_Lorg_apache_http_conn_routing_HttpRoute_Ljava_lang_Object_Handler")>]
abstract member RequestConnection : Org.Apache.Http.Conn.Routing.HttpRoute * Java.Lang.Object -> Org.Apache.Http.Conn.IClientConnectionRequest
override this.RequestConnection : Org.Apache.Http.Conn.Routing.HttpRoute * Java.Lang.Object -> Org.Apache.Http.Conn.IClientConnectionRequest

Parameters

route
HttpRoute

The route for which to request a connection.

state
Object

The requested connection state.

Returns

A request that can obtain or abort acquisition of a managed connection.

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.

Applies to