BaseHandler

Undocumented in source.

Members

Functions

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.

Manifest constants

genericErrorMessage
enum genericErrorMessage;
Undocumented in source.

Static variables

addAppContextCallback
void function(Mustache.Context, SessionData) addAppContextCallback;
Undocumented in source.
allowInsecure
bool allowInsecure;
Undocumented in source.
noCache
bool noCache;
Undocumented in source.
publicDebugInfo
bool publicDebugInfo;
Undocumented in source.

Variables

baseSess
SessionData baseSess;
Undocumented in source.
req
HTTPServerRequest req;
Undocumented in source.
res
HTTPServerResponse res;
Undocumented in source.
viewContext
Mustache.Context viewContext;

On the stack: DO NOT SAVE past lifetime of handlerDispatch.

Meta