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
context
IHttpContext

Returns

true when the established tunnel is secure; otherwise, false.

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