Control

org.scalatra.Control
trait Control

A collection of methods that affect the control flow of routes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def halt[T](status: Integer, body: T, headers: Map[String, String]): Nothing

Immediately halts processing of a request. Can be called from either a before filter or a route.

Immediately halts processing of a request. Can be called from either a before filter or a route.

Value parameters

body

a result to render through the render pipeline as the body

headers

headers to add to the response

status

the status to set on the response, or null to leave the status unchanged.

Attributes

def halt(result: ActionResult): Nothing
def pass(): Nothing

Immediately exits from the current route.

Immediately exits from the current route.

Attributes