Exemplo n.º 1
0
        public HttpServer(int port, IEnumerable <Route> routes)
        {
            Port      = port;
            Processor = new HttpProcessor();

            foreach (var route in routes)
            {
                Processor.AddRoute(route);
            }
        }