HttpHost Constructors
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.
Overloads
| Name | Description |
|---|---|
| HttpHost(HttpHost) |
Copy constructor for HttpHost. |
| HttpHost(String) |
Creates a new HttpHost, with default scheme and port. |
| HttpHost(String, Int32) |
Creates a new HttpHost, with default scheme. |
| HttpHost(String, Int32, String) |
Creates a new HttpHost, specifying all values. |
HttpHost(HttpHost)
Copy constructor for HttpHost.
[Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;)V", "")]
public HttpHost(Org.Apache.Http.HttpHost? httphost);
[<Android.Runtime.Register(".ctor", "(Lorg/apache/http/HttpHost;)V", "")>]
new Org.Apache.Http.HttpHost : Org.Apache.Http.HttpHost -> Org.Apache.Http.HttpHost
Parameters
- httphost
- HttpHost
The host whose name, port, and scheme are copied.
- 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
HttpHost(String)
Creates a new HttpHost, with default scheme and port.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public HttpHost(string? hostname);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Org.Apache.Http.HttpHost : string -> Org.Apache.Http.HttpHost
Parameters
- hostname
- String
The non-null DNS name or IP address of the host.
- 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
HttpHost(String, Int32)
Creates a new HttpHost, with default scheme.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")]
public HttpHost(string? hostname, int port);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "")>]
new Org.Apache.Http.HttpHost : string * int -> Org.Apache.Http.HttpHost
Parameters
- hostname
- String
The non-null DNS name or IP address of the host.
- port
- Int32
The port number, or -1 to use the scheme's default port.
- 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
HttpHost(String, Int32, String)
Creates a new HttpHost, specifying all values.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")]
public HttpHost(string? hostname, int port, string? scheme);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ILjava/lang/String;)V", "")>]
new Org.Apache.Http.HttpHost : string * int * string -> Org.Apache.Http.HttpHost
Parameters
- hostname
- String
The non-null DNS name or IP address of the host.
- port
- Int32
The port number, or -1 to use the scheme's default port.
- scheme
- String
The scheme name, which is stored in lowercase, or null to use http.
- 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.