object
StrictContentTypeNegotiation
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
implicit
def
apply[A, B, C, D, E, F, G](mappings: (ContentType, (A, B, C, D, E, F, G) ⇒ Service[Request, Response])*): (A, B, C, D, E, F, G) ⇒ Service[Request, Response]
-
implicit
def
apply[A, B, C, D, E, F](mappings: (ContentType, (A, B, C, D, E, F) ⇒ Service[Request, Response])*): (A, B, C, D, E, F) ⇒ Service[Request, Response]
-
implicit
def
apply[A, B, C, D, E](mappings: (ContentType, (A, B, C, D, E) ⇒ Service[Request, Response])*): (A, B, C, D, E) ⇒ Service[Request, Response]
-
implicit
def
apply[A, B, C, D](mappings: (ContentType, (A, B, C, D) ⇒ Service[Request, Response])*): (A, B, C, D) ⇒ Service[Request, Response]
-
implicit
def
apply[A, B, C](mappings: (ContentType, (A, B, C) ⇒ Service[Request, Response])*): (A, B, C) ⇒ Service[Request, Response]
-
implicit
def
apply[A, B](mappings: (ContentType, (A, B) ⇒ Service[Request, Response])*): (A, B) ⇒ Service[Request, Response]
-
implicit
def
apply[A](mappings: (ContentType, (A) ⇒ Service[Request, Response])*): (A) ⇒ Service[Request, Response]
-
implicit
def
apply(mappings: (ContentType, Service[Request, Response])*): Service[Request, Response]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Service which allows strict content type negotiation (for multiple mappings) to be supported on a single route. Note that due to Content-Type negotiation being quite complicated, this service does NOT support full functionality, such as q values or levels.
The implementation is: Check the Accept header and tries to get an exact match on any "<level1>/<level2>" value that it finds. If no match can be found, return an HTTP 406 (Not Acceptable) status. Wildcards or missing Accept headers will choose the first supplied service in the list.