- badRequest
HttpResult badRequest()
Undocumented in source. Be warned that the author may not have intended to support it.
- errorHandler
HttpResult errorHandler(HTTPServerErrorInfo error)
Undocumented in source. Be warned that the author may not have intended to support it.
- genericError
HttpResult genericError(int statusCode)
Undocumented in source. Be warned that the author may not have intended to support it.
- genericError
HttpResult genericError(int statusCode, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
- notFound
HttpResult notFound()
Undocumented in source. Be warned that the author may not have intended to support it.
- ok
HttpResult ok(T content, string mimeType)
Undocumented in source. Be warned that the author may not have intended to support it.
- okHtml
HttpResult okHtml(PageBase page)
Undocumented in source. Be warned that the author may not have intended to support it.
- okHtml
HttpResult okHtml(string content)
Undocumented in source. Be warned that the author may not have intended to support it.
- redirect
HttpResult redirect(string url, int status)
Undocumented in source. Be warned that the author may not have intended to support it.
- redirectToLogin
HttpResult redirectToLogin(string loginUrl)
Automatically sets session's postLoginUrl to the URL requested by the user.
- redirectToLogin
HttpResult redirectToLogin(string loginUrl, string postLoginUrl)
If postLoginUrl=="", that signals that your app's default
after-login URL is to be used.
- redirectToPostLogin
HttpResult redirectToPostLogin(string defaultUrl)
Call this when the user succesfulyl logs in.
- renderPage
string renderPage(PageBase page)
Undocumented in source. Be warned that the author may not have intended to support it.
- renderPage
string renderPage(string templateName)
Undocumented in source. Be warned that the author may not have intended to support it.