Language

DefaultRequestDirector.CreateTunnelToProxy Method

Definition

Attempts to create an intermediate proxy tunnel.

[Android.Runtime.Register("createTunnelToProxy", "(Lorg/apache/http/conn/routing/HttpRoute;ILorg/apache/http/protocol/HttpContext;)Z", "GetCreateTunnelToProxy_Lorg_apache_http_conn_routing_HttpRoute_ILorg_apache_http_protocol_HttpContext_Handler")]
protected virtual bool CreateTunnelToProxy(Org.Apache.Http.Conn.Routing.HttpRoute? route, int hop, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("createTunnelToProxy", "(Lorg/apache/http/conn/routing/HttpRoute;ILorg/apache/http/protocol/HttpContext;)Z", "GetCreateTunnelToProxy_Lorg_apache_http_conn_routing_HttpRoute_ILorg_apache_http_protocol_HttpContext_Handler")>]
abstract member CreateTunnelToProxy : Org.Apache.Http.Conn.Routing.HttpRoute * int * Org.Apache.Http.Protocol.IHttpContext -> bool
override this.CreateTunnelToProxy : Org.Apache.Http.Conn.Routing.HttpRoute * int * Org.Apache.Http.Protocol.IHttpContext -> bool

Parameters

route
HttpRoute

The route for the proposed proxy tunnel. This implementation does not use it.

hop
Int32

The index of the proxy hop to tunnel to. This implementation does not use it.

context
IHttpContext

The request execution context. This implementation does not use it.

Returns

This implementation does not return a value. It always throws UnsupportedOperationException because proxy chains are not supported.

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