c

akka.http.javadsl.model

ContentTypes

final class ContentTypes extends AnyRef

Contains the set of predefined content-types for convenience.

If the ContentType you're looking for is not pre-defined here, you can obtain it from a MediaType by using: MediaTypes.TEXT_HTML.toContentType()

Source
ContentTypes.java
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContentTypes
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected