Language

DefaultRequestDirector.CreateTunnelToTarget(HttpRoute, IHttpContext) Method

Definition

Creates a tunnel to the target through the proxy.

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

Parameters

route
HttpRoute

The route that supplies the proxy and target for the CONNECT exchange.

context
IHttpContext

The context used to send CONNECT and obtain credentials for proxy authentication.

Returns

false in this implementation, which considers the tunnel insecure by default.

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