trait RequestExtractors extends AcceptExtractors
- Source
- RequestExtractors.scala
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RequestExtractors
- AcceptExtractors
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- 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
- 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" }