Packages

p

examples

strictcontenttypes

package strictcontenttypes

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Value Members

  1. object MultiBodyTypeRoute extends App

    Shows how to add routes which can accept multiple body types (based on the Content-Type header)

  2. object StrictMultiContentTypeRoute extends App

    Shows how to add routes which can serve multiple content types using strict content-type negotiation.

    Shows how to add routes which can serve multiple content types using strict content-type negotiation. Basically, the Accept header is checked against the list of supplied services and a match found. If there is no Accept header set in the request, the first service in the list is used. This means that there is NO sophisticated content negotiation implemented, although Wildcard Accept headers is supported to match the first supplied mapping service.

Ungrouped