ProxySelectorRoutePlanner.ChooseProxy 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.
Selects the first DIRECT or HTTP entry in the list, ignoring SOCKS entries at the route-planning level.
[Android.Runtime.Register("chooseProxy", "(Ljava/util/List;Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Ljava/net/Proxy;", "GetChooseProxy_Ljava_util_List_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")]
protected virtual Java.Net.Proxy? ChooseProxy(System.Collections.Generic.IList<Java.Net.Proxy>? proxies, Org.Apache.Http.HttpHost? target, Org.Apache.Http.IHttpRequest? request, Org.Apache.Http.Protocol.IHttpContext? context);
[<Android.Runtime.Register("chooseProxy", "(Ljava/util/List;Lorg/apache/http/HttpHost;Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)Ljava/net/Proxy;", "GetChooseProxy_Ljava_util_List_Lorg_apache_http_HttpHost_Lorg_apache_http_HttpRequest_Lorg_apache_http_protocol_HttpContext_Handler")>]
abstract member ChooseProxy : System.Collections.Generic.IList<Java.Net.Proxy> * Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Java.Net.Proxy
override this.ChooseProxy : System.Collections.Generic.IList<Java.Net.Proxy> * Org.Apache.Http.HttpHost * Org.Apache.Http.IHttpRequest * Org.Apache.Http.Protocol.IHttpContext -> Java.Net.Proxy
Parameters
- target
- HttpHost
The planned target host, available to overrides.
- request
- IHttpRequest
The request to be sent, available to overrides.
- context
- IHttpContext
The execution context, or null, available to overrides.
Returns
The first DIRECT or HTTP proxy, or the direct-connection proxy if all entries are SOCKS proxies. Never null.
- 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.