HttpRoute Constructors

Definition

Overloads

Name Description
HttpRoute(HttpHost)

Creates a new direct insecure route.

HttpRoute(HttpHost, InetAddress, Boolean)

Creates a new direct route.

HttpRoute(HttpHost, InetAddress, HttpHost, Boolean)

Creates a new route through a proxy.

HttpRoute(HttpHost, InetAddress, HttpHost, Boolean, RouteInfoTunnelType, RouteInfoLayerType)

Creates a new route with at most one proxy.

HttpRoute(HttpHost, InetAddress, HttpHost[], Boolean, RouteInfoTunnelType, RouteInfoLayerType)

Creates a new route with all attributes specified explicitly.

HttpRoute(HttpHost)

Creates a new direct insecure route.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;)V", "")]
public HttpRoute(Org.Apache.Http.HttpHost? target);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;)V", "")>]
new Org.Apache.Http.Conn.Routing.HttpRoute : Org.Apache.Http.HttpHost -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The host to which to route.

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

HttpRoute(HttpHost, InetAddress, Boolean)

Creates a new direct route.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Z)V", "")]
public HttpRoute(Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, bool secure);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Z)V", "")>]
new Org.Apache.Http.Conn.Routing.HttpRoute : Org.Apache.Http.HttpHost * Java.Net.InetAddress * bool -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The host to which to route.

local
InetAddress

The local address to route from, or null to use the default address.

secure
Boolean

true for a secure route; 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.

Applies to

HttpRoute(HttpHost, InetAddress, HttpHost, Boolean)

Creates a new route through a proxy.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;Z)V", "")]
public HttpRoute(Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.HttpHost? proxy, bool secure);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;Z)V", "")>]
new Org.Apache.Http.Conn.Routing.HttpRoute : Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.HttpHost * bool -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The host to which to route.

local
InetAddress

The local address to route from, or null to use the default address.

proxy
HttpHost

The proxy to use.

secure
Boolean

true for a secure route; 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.

Applies to

HttpRoute(HttpHost, InetAddress, HttpHost, Boolean, RouteInfoTunnelType, RouteInfoLayerType)

Creates a new route with at most one proxy.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;ZLorg/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/RouteInfo$LayerType;)V", "")]
public HttpRoute(Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.HttpHost? proxy, bool secure, Org.Apache.Http.Conn.Routing.RouteInfoTunnelType? tunnelled, Org.Apache.Http.Conn.Routing.RouteInfoLayerType? layered);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;Lorg/apache/http/HttpHost;ZLorg/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/RouteInfo$LayerType;)V", "")>]
new Org.Apache.Http.Conn.Routing.HttpRoute : Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.HttpHost * bool * Org.Apache.Http.Conn.Routing.RouteInfoTunnelType * Org.Apache.Http.Conn.Routing.RouteInfoLayerType -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The host to which to route.

local
InetAddress

The local address to route from, or null to use the default address.

proxy
HttpHost

The proxy to use, or null for a direct route.

secure
Boolean

true for a secure route; otherwise, false.

tunnelled
RouteInfoTunnelType

The tunnelling type of the route.

layered
RouteInfoLayerType

The layering type of the route.

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

HttpRoute(HttpHost, InetAddress, HttpHost[], Boolean, RouteInfoTunnelType, RouteInfoLayerType)

Creates a new route with all attributes specified explicitly.

[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;[Lorg/apache/http/HttpHost;ZLorg/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/RouteInfo$LayerType;)V", "")]
public HttpRoute(Org.Apache.Http.HttpHost? target, Java.Net.InetAddress? local, Org.Apache.Http.HttpHost[]? proxies, bool secure, Org.Apache.Http.Conn.Routing.RouteInfoTunnelType? tunnelled, Org.Apache.Http.Conn.Routing.RouteInfoLayerType? layered);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;Ljava/net/InetAddress;[Lorg/apache/http/HttpHost;ZLorg/apache/http/conn/routing/RouteInfo$TunnelType;Lorg/apache/http/conn/routing/RouteInfo$LayerType;)V", "")>]
new Org.Apache.Http.Conn.Routing.HttpRoute : Org.Apache.Http.HttpHost * Java.Net.InetAddress * Org.Apache.Http.HttpHost[] * bool * Org.Apache.Http.Conn.Routing.RouteInfoTunnelType * Org.Apache.Http.Conn.Routing.RouteInfoLayerType -> Org.Apache.Http.Conn.Routing.HttpRoute

Parameters

target
HttpHost

The host to which to route.

local
InetAddress

The local address to route from, or null to use the default address.

proxies
HttpHost[]

The proxy chain to use, or null for a direct route.

secure
Boolean

true for a secure route; otherwise, false.

tunnelled
RouteInfoTunnelType

The tunnelling type of the route.

layered
RouteInfoLayerType

The layering type of the route.

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