Class ContentTypeResolver$
java.lang.Object
akka.http.scaladsl.server.directives.ContentTypeResolver$
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ContentTypeResolver$
Static reference to the singleton instance of this Scala object. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(scala.Function1<String, ContentType> f) Default()
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.withDefaultCharset
(HttpCharset charset)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ContentTypeResolver$
public ContentTypeResolver$()
-
-
Method Details
-
Default
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.- Returns:
- (undocumented)
-
withDefaultCharset
-
apply
-