DefaultRequestDirector.CreateTunnelToTarget(HttpRoute, 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.
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
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.