akka.http.scaladsl.server.directives
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.
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.