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(); }
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(); }