Generate a redirect when the user is not logged in.
|
NEW(func, to) @public | Create a new login servlet, using func to check if the user is logged
in and redirect to URL to if not.
|
|
$setResponseCode(code) @public | Change the default 301 response code into code.
|
|
$setPostHandler(func)
HTTP.LoginServlet @public | Set a function to handle POST requests.
|
|
$serve(context)
bool @public | Handle a redirect request.
|
|
Inherited from HTTP.Servlet:
|
|
$setAllPaths(allPaths) @public | Set whether this Servlet handles all paths.
|
|
$addPath(path) @public | Add a path that this servlet will serve for.
|
|
$handle(context)
bool @public | Check if this servlet wants to serve context.request.
|
|
$setMimeType(type) @public | Set the MIME type to be used in the response for this Servlet.
|
|
$filter(context)
bool @public | Filter context.request, possibly changing context.
|
|