Gets the content type of the current response.
Gets the content type of the current response.
Sets the content type of the current response.
Sets the content type of the current response.
Explicitly sets the request-scoped format.
Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.
Explicitly sets the request-scoped format.
Explicitly sets the request-scoped format. This takes precedence over whatever was inferred from the request.
Immediately halts processing of a request.
Immediately halts processing of a request. Can be called from either a before filter or a route.
the status to set on the response, or null to leave the status unchanged.
a result to render through the render pipeline as the body
headers to add to the response
the HTTP status reason to set, or null to leave unchanged.
Immediately exits from the current route.
Immediately exits from the current route.
The current session.
The current session. Creates a session if none exists.
The current session.
The current session. If none exists, None is returned.
Gets the status code of the current response.
Gets the status code of the current response.
Sets the status code of the current response.
Sets the status code of the current response.
(Since version 2.1.0) Use status_=(Int) instead
The core Scalatra DSL.