HTTP server with regular expression path matching, client and server SSL certificates, and a simplified request callback
コード例 #1
0
ファイル: CapsServer.cs プロジェクト: 3di/3di-viewer-rei-libs
 public CapsServer(IPAddress address, int port, X509Certificate sslCertificate, X509Certificate rootCA, bool requireClientCertificate)
 {
     serverOwned = true;
     capsHandler = BuildCapsHandler("^/");
     server = new WebServer(address, port, sslCertificate, rootCA, requireClientCertificate);
     server.LogWriter = new log4netLogWriter(Logger.Log);
 }
コード例 #2
0
ファイル: CapsServer.cs プロジェクト: 3di/3di-viewer-rei-libs
 public CapsServer(IPAddress address, int port)
 {
     serverOwned = true;
     capsHandler = BuildCapsHandler("^/");
     server = new WebServer(address, port);
     server.LogWriter = new log4netLogWriter(Logger.Log);
 }
コード例 #3
0
ファイル: CapsServer.cs プロジェクト: 3di/3di-viewer-rei-libs
 public CapsServer(WebServer httpServer, string handlerPath)
 {
     serverOwned = false;
     capsHandler = BuildCapsHandler(handlerPath);
     server = httpServer;
 }
コード例 #4
0
 public EventQueueServer(WebServer server)
 {
     this.server = server;
 }
コード例 #5
0
ファイル: Simian.cs プロジェクト: 3di/3di-viewer-rei-libs
        void InitHttpServer(int port, bool ssl)
        {
            HttpServer = new WebServer(IPAddress.Any, port);

            // Login webpage HEAD request, used to check if the login webpage is alive
            HttpServer.AddHandler("head", null, "^/$", LoginWebpageHeadHandler);

            // Login webpage GET request, gets the login webpage data (purely aesthetic)
            HttpServer.AddHandler("get", null, @"^/(\?.*)?$", LoginWebpageGetHandler);

            // Client XML-RPC login
            HttpServer.AddHandler("post", "text/xml", "^/$", LoginXmlRpcPostHandler);

            // Client LLSD login
            HttpServer.AddHandler("post", "application/xml", "^/$", LoginLLSDPostHandler);

            HttpServer.Start();
        }