object Accepts

Common extractors to check if a request accepts JSON, Html, etc. Example of use:

request match {
  case Accepts.Json() => Ok(toJson(value))
  case _ => Ok(views.html.show(value))
}
Source
RequestExtractors.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Accepts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val Html: Accepting
  2. val JavaScript: Accepting
  3. val Json: Accepting
  4. val Xml: Accepting