ProxySelectorRoutePlanner.DetermineRoute 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.
Returns a forced route if present. Otherwise, prefers an explicit proxy setting, including an explicit no-proxy value, over the proxy selector and treats layered target 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 supplies a forced route.
- request
- IHttpRequest
The non-null request containing route, local-address, and explicit proxy parameters.
- context
- IHttpContext
The execution context passed to proxy selection.
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.