HttpServer Members
The HttpServer type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpServer()()()() |
Initializes a new instance of the HttpServer class.
|
|
HttpServer(Int32) |
Initializes a new instance of the HttpServer class with
the specified port.
|
|
HttpServer(String) |
Initializes a new instance of the HttpServer class with
the specified HTTP URL.
|
|
HttpServer(Int32, Boolean) | ||
HttpServer(IPAddress, Int32) | ||
HttpServer(IPAddress, Int32, Boolean) |
Methods
Name | Description | |
---|---|---|
AddWebSocketService<(Of <<'(TBehavior>)>>)(String, Func<(Of <<'(TBehavior>)>>)) |
Adds the WebSocket service with the specified behavior, path,
and initializer.
|
|
AddWebSocketService<(Of <<'(TBehaviorWithNew>)>>)(String) |
Adds a WebSocket service with the specified behavior and path.
|
|
Equals(System.Object) | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetFile |
Gets the contents of the file with the specified path.
|
|
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
RemoveWebSocketService |
Removes the WebSocket service with the specified path.
|
|
Start |
Starts receiving the HTTP requests.
|
|
Stop()()()() |
Stops receiving the HTTP requests.
|
|
Stop(UInt16, String) | ||
Stop(CloseStatusCode, String) |
Stops receiving the HTTP requests with the specified CloseStatusCode and
String used to stop the WebSocket services.
|
|
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
Address |
Gets the local IP address of the server.
|
|
AuthenticationSchemes |
Gets or sets the scheme used to authenticate the clients.
|
|
IsListening |
Gets a value indicating whether the server has started.
|
|
IsSecure |
Gets a value indicating whether the server provides a secure connection.
|
|
KeepClean |
Gets or sets a value indicating whether the server cleans up
the inactive sessions in the WebSocket services periodically.
|
|
Log |
Gets the logging functions.
|
|
Port |
Gets the port on which to listen for incoming requests.
|
|
Realm |
Gets or sets the name of the realm associated with the server.
|
|
ReuseAddress |
Gets or sets a value indicating whether the server is allowed to be bound to
an address that is already in use.
|
|
RootPath |
Gets or sets the document root path of the server.
|
|
SslConfiguration |
Gets or sets the SSL configuration used to authenticate the server and
optionally the client for secure connection.
|
|
UserCredentialsFinder |
Gets or sets the delegate called to find the credentials for an identity used to
authenticate a client.
|
|
WaitTime |
Gets or sets the wait time for the response to the WebSocket Ping or Close.
|
|
WebSocketServices |
Gets the access to the WebSocket services provided by the server.
|
Events
Name | Description | |
---|---|---|
OnConnect |
Occurs when the server receives an HTTP CONNECT request.
|
|
OnDelete |
Occurs when the server receives an HTTP DELETE request.
|
|
OnGet |
Occurs when the server receives an HTTP GET request.
|
|
OnHead |
Occurs when the server receives an HTTP HEAD request.
|
|
OnOptions |
Occurs when the server receives an HTTP OPTIONS request.
|
|
OnPatch |
Occurs when the server receives an HTTP PATCH request.
|
|
OnPost |
Occurs when the server receives an HTTP POST request.
|
|
OnPut |
Occurs when the server receives an HTTP PUT request.
|
|
OnTrace |
Occurs when the server receives an HTTP TRACE request.
|