play.api.mvc
Convenient class to generate extractors checking if a given mime type matches the Accept header of a request. Example of use:
val AcceptsMp3 = Accepting("audio/mp3")
Then:
request match { case AcceptsMp3() => ... }
Convenient class to generate extractors checking if a given mime type matches the Accept header of a request. Example of use:
Then: