ContentTypeResolver

org.apache.pekko.http.scaladsl.server.directives.ContentTypeResolver
See theContentTypeResolver companion trait

Attributes

Companion
trait
Source
FileAndResourceDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Implicits

Implicits

The default way of resolving a filename to a ContentType is by looking up the file extension in the registry of all defined media-types. By default all non-binary file content is assumed to be UTF-8 encoded.

The default way of resolving a filename to a ContentType is by looking up the file extension in the registry of all defined media-types. By default all non-binary file content is assumed to be UTF-8 encoded.

Attributes

Source
FileAndResourceDirectives.scala