You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateQuickManAPI;publicvoidRun(){API=newQuickMan();varEndpoints=newDictionary<string,Action<HttpListenerContext>>();// Endpoint should not start with a '/'// i.e Endpoints.Add("/HelloWorld", HelloWorld); won't work// To add an endpoint: Endpoints.Add("EndpointName", EndpointMethod);Endpoints.Add("HelloWorld",HelloWorld);// Server now will start on http://localhost:1999/API.Start(Endpoints,20/*Maximum Simultaneous Connections*/);}// http://localhost:1999/HelloWorldpublicvoidHelloWorld(HttpListenerContextContext){// You always have a respond to the request ASAP,// otherwise client will drop the connection after ~30 SecondsAPI.Respond("Hello World!",Context);Console.WriteLine($"Said 'Hello World!' to {Context.Request.RemoteEndPoint}");}