Class
HttpHost
Represents an HTTP host that listens for incoming TCP connections and handles HTTP requests.
public sealed class HttpHost : IDisposableInheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| HttpHost(IPEndPoint) | Initializes a new instance of the HttpHost class using the specified IPEndPoint. |
| HttpHost(int) | Initializes a new instance of the HttpHost class using the specified port on the loopback address. |
Properties #
| Name | Description |
|---|---|
| Endpoint | Gets the endpoint of the HttpHost. |
| Handler | Gets or sets an HttpHostHandler instance for this HttpHost. |
| HttpsOptions | Gets or sets the HTTPS options for secure connections. Setting an HttpsOptions object in this property, the HttpHost will use HTTPS instead of HTTP. |
| IsDisposed | Gets a value indicating whether this HttpHost has been disposed. |
| ServerNameHeader | Gets or sets the name of the server in the header name. |
| TimeoutManager | Gets the HttpHostTimeoutManager for this HttpHost. |
Methods #
| Name | Description |
|---|---|
| Dispose() | |
| ~HttpHost() | |
| Start() | Starts the HTTP host and begins listening for incoming connections. |
| Stop() | Stops the HTTP host from listening for incoming HTTP requests. |