Język

ProxySelectorRoutePlanner.DetermineProxy Method

Definition

Uses the configured or system-default proxy selector and converts the selected HTTP proxy's internet socket address to an HTTP host.

[Android.Runtime.Register("determineProxy", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpHost;", "GetDetermineProxy_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")]
protected virtual Org.Apache.Http.HttpHost? DetermineProxy(Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("determineProxy", "(Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/HttpHost;", "GetDetermineProxy_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member DetermineProxy : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.HttpHost
override this.DetermineProxy : Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Org.Apache.Http.HttpHost

Parameters

target
HttpHost

The non-null target host whose URI is passed to the proxy selector.

request
IHttpRequest

The non-null request, passed to proxy selection overrides.

context
IHttpContext

The execution context, or null.

Returns

The HTTP proxy host, or null for a direct route or when no selector exists.

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