예제 #1
0
파일: Startup.cs 프로젝트: xt0rted/JibbR
        public static Task RobotsRoute(IDictionary<string, object> env)
        {
            IResponse response = new ResponseWrapper(env);

            response.ContentType = "text/plain";
            response.Write("User-agent: *\nDisallow: /");

            return TaskHelpers.Completed();
        }
예제 #2
0
파일: Startup.cs 프로젝트: xt0rted/JibbR
        public static Task IndexRoute(IDictionary<string, object> env)
        {
            IResponse response = new ResponseWrapper(env);

            response.StatusCode = 200;
            response.Write("<html>" +
                               "<head>" +
                                   "<title>JibbR</title>" +
                               "</head>" +
                               "<body>hi.</body>" +
                           "</html>");

            return TaskHelpers.Completed();
        }