C-DEngine 5.105

HttpServer Constructor (String)

Initializes a new instance of the HttpServer class with the specified HTTP URL.

Namespace:  WebSocketSharp.Server
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public HttpServer(
	string url
)
Public Sub New ( _
	url As String _
)
public:
HttpServer(
	String^ url
)

Parameters

url
Type: String
A String that represents the HTTP URL of the server.

Exceptions


ExceptionCondition
ArgumentNullExceptionurl is nullNothingnullptra null reference (Nothing in Visual Basic).
ArgumentException

url is empty.

-or-

url is invalid.

Remarks


An instance initialized by this constructor listens for the incoming requests on the host name and port in url.

If url doesn't include a port, either port 80 or 443 is used on which to listen. It's determined by the scheme (http or https) in url. (Port 80 if the scheme is http.)