A complete http server, you need to add a module to it to be able to handle incoming requests.
Namespace:
HttpServer
Assembly:
HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public class HttpServer |
Visual Basic (Declaration) |
---|
Public Class HttpServer |
Visual C++ |
---|
public ref class HttpServer |
Examples
CopyC#
// this small example will add two web site modules, thus handling // two different sites. In reality you should add Controller modules or something // two the website modules to be able to handle different requests. HttpServer server = new HttpServer(); server.Add(new WebSiteModule("www.gauffin.com", "Gauffin Telecom AB")); server.Add(new WebSiteModule("www.vapadi.se", "Remote PBX")); // start regular http server.Start(IPAddress.Any, 80); // start https server.Start(IPAddress.Any, 443, myCertificate);