Пример #1
0
        void Process(HttpListenerContext c)
        {
            var r = _app.FindResource(c.Request.Url);

            if (r == null)
            {
                c.Response.StatusCode = 404;
                c.Response.Close();
            }
            else
            {
                c.Response.StatusCode  = 200;
                c.Response.SendChunked = true;
                r.Respond(c);
            }
        }