play.api.mvc.AcceptExtractors
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)) }
Common extractors to check if a request accepts JSON, Html, etc. Example of use: