HttpServer Class |
Namespace: Sfs2X.WebSocketSharp.Server
public class HttpServer
The HttpServer type exposes the following members.
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 url.
| |
HttpServer(Int32, Boolean) |
Initializes a new instance of the HttpServer class with
the specified port and secure.
| |
HttpServer(IPAddress, Int32) |
Initializes a new instance of the HttpServer class with
the specified address and port.
| |
HttpServer(IPAddress, Int32, Boolean) |
Initializes a new instance of the HttpServer class with
the specified address, port,
and secure.
|
Name | Description | |
---|---|---|
Address |
Gets the IP address of the server.
| |
AuthenticationSchemes |
Gets or sets the scheme used to authenticate the clients.
| |
DocumentRootPath |
Gets or sets the path to the document folder of the server.
| |
IsListening |
Gets a value indicating whether the server has started.
| |
IsSecure |
Gets a value indicating whether secure connections are provided.
| |
KeepClean |
Gets or sets a value indicating whether the server cleans up
the inactive sessions periodically.
| |
Log |
Gets the logging function for the server.
| |
Port |
Gets the port of the server.
| |
Realm |
Gets or sets the realm used for authentication.
| |
ReuseAddress |
Gets or sets a value indicating whether the server is allowed to
be bound to an address that is already in use.
| |
SslConfiguration |
Gets the configuration for secure connection.
| |
UserCredentialsFinder |
Gets or sets the delegate used to find the credentials
for an identity.
| |
WaitTime |
Gets or sets the time to wait for the response to the WebSocket Ping or
Close.
| |
WebSocketServices |
Gets the management function for the WebSocket services
provided by the server.
|
Name | Description | |
---|---|---|
AddWebSocketServiceTBehaviorWithNew(String) |
Adds a WebSocket service with the specified behavior and
path.
| |
AddWebSocketServiceTBehaviorWithNew(String, ActionTBehaviorWithNew) |
Adds a WebSocket service with the specified behavior,
path, and initializer.
| |
AddWebSocketServiceTBehavior(String, FuncTBehavior) | Obsolete.
Adds a WebSocket service with the specified behavior,
path, and creator.
| |
GetFile | Obsolete.
Gets the contents of the specified file from the document
folder of the server.
| |
RemoveWebSocketService |
Removes a WebSocket service with the specified path.
| |
Start |
Starts receiving incoming requests.
| |
Stop |
Stops receiving incoming requests.
| |
Stop(CloseStatusCode, String) | Obsolete.
Stops receiving incoming requests and closes each connection.
| |
Stop(UInt16, String) | Obsolete.
Stops receiving incoming requests and closes each connection.
|
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.
| |
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.
|