private void ProcessExpressRequest(HttpListenerContext context, ExpressApplication app)
        {
            var wrapper = new HttpListenerContextImpl(context, _settings);
            var res = wrapper.Response;

            using (res.OutputStream)
            {
                try
                {
                    if (!app.Process(wrapper))
                    {
                        res.StatusCode = (int)HttpStatusCode.NotFound;
                        res.StatusDescription = "Not found";
                        res.ContentType = "text/plain";
                        res.Write("Resource not found!");
                    }
                }
                catch (Exception e)
                {
                    Console.Error.WriteLine(e);

                    res.StatusCode = (int)HttpStatusCode.InternalServerError;
                    res.ContentType = "text/plain";
                    res.Write(e.ToString());
                }

                res.Flush();
                res.End();
            }
        }
        private void ProcessExpressRequest(HttpListenerContext context, ExpressApplication app)
        {
            var wrapper = new HttpListenerContextImpl(context, _settings);
            var res     = wrapper.Response;

            using (res.OutputStream)
            {
                try
                {
                    if (!app.Process(wrapper))
                    {
                        res.StatusCode        = (int)HttpStatusCode.NotFound;
                        res.StatusDescription = "Not found";
                        res.ContentType       = "text/plain";
                        res.Write("Resource not found!");
                    }
                }
                catch (Exception e)
                {
                    Console.Error.WriteLine(e);

                    res.StatusCode  = (int)HttpStatusCode.InternalServerError;
                    res.ContentType = "text/plain";
                    res.Write(e.ToString());
                }

                res.Flush();
                res.End();
            }
        }