Language

DefaultHttpRoutePlanner.DetermineRoute Method

Definition

Returns the forced route if set; otherwise, builds a route from the request's local address and default proxy, treating layered schemes as secure.

[Android.Runtime.Register("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", "GetDetermineRoute_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")]
public virtual Org.Apache.Http.Conn.Routing.HttpRoute? DetermineRoute(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("determineRoute", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/conn/routing/HttpRoute;", "GetDetermineRoute_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member DetermineRoute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.Conn.Routing.HttpRoute
override this.DetermineRoute : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The target host; required unless the request specifies a forced route.

request
IHttpRequest

The non-null request whose parameters supply the forced route, local address, and default proxy.

context
IHttpContext

The execution context; not used by the default implementation.

Returns

The forced route or the computed direct or proxy route.

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