// Initalizing HTTP Server
HTTP http = new HTTP();
// Creating Thread so it will continue executing rest of the script(including http.GET)
Thread ServerThread = new Thread(() => http.ListenMA(new string[] { "http://127.0.0.1:80/", "http://localhost:80/" }));
// starting the thread
ServerThread.Start();
// adding paths and handlers to routes list
http.Get("/", "text/plain", queryparams => "pong");
// adding this to not close the whole server after initalizing
Console.ReadLine();
// Initalizing HTTP Server
HTTP http = new HTTP();
// Creating Thread so it will continue executing rest of the script(including http.GET)
Thread ServerThread = new Thread(() => http.Listen("http://localhost:80/"));
// starting the thread
ServerThread.Start();
// adding paths and handlers to routes list
http.Get("/", "text/plain", queryparams => "pong");
// adding this to not close the whole server after initalizing
Console.ReadLine();
.NET Framework 4.7.2 or newer