case class Accepting(mimeType: String) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- Accepting
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Accepting(mimeType: String)
Value Members
- val mimeType: String
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def unapply(mediaRange: MediaRange): Boolean
- def unapply(request: RequestHeader): Boolean
Convenient class to generate extractors checking if a given mime type matches the Accept header of a request. Example of use:
Then: