Packages

t

play.api.mvc

RequestExtractors

trait RequestExtractors extends AcceptExtractors

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RequestExtractors
  2. AcceptExtractors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. object Accepts

    Common extractors to check if a request accepts JSON, Html, etc.

    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))
    }
    Definition Classes
    AcceptExtractors
  2. object &

    Convenient extractor allowing to apply two extractors.

    Convenient extractor allowing to apply two extractors. Example of use:

    request match {
      case Accepts.Json() & Accepts.Html() => "This request accepts both JSON and HTML"
    }