Skip to content

NathanielACollier/dotnetLib_nac.WebServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nac.WebServer

  • Code moved from WebPad project to here so it can be used in other projects

Example

var webMan = new nac.WebServer.WebServerManager();

webMan.OnNewRequest += (_s, _e) =>
{
    if(_e.Request.Url.LocalPath == "/"){
        nac.WebServer.lib.HttpHelper.WriteTextResponse(_e.Response, "text/html", @"
            <div style='color:green;'>Hello World!</div>
        ");
    }
};
webMan.Start();

About

Provides a simple way to server http requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published