All media types: * / *
Defines parses for the media type syntax.
Media range, with a main-type only (such as text/ *
, for example).
Specific media type, with both a main- and sub-type (such as text-plain
, for example).
Attempts to extract a media type from the specified string.
Allows pattern matching against instances of Response, as in
Allows pattern matching against instances of Response, as in
val req: Request[Response[ResponseEntity]] = ??? req.map { case MediaType(type) => println("Media type: " + type) }
Defines MediaType implementations as well as known types.