Class ContentTypeResolver$
- java.lang.Object
-
- akka.http.scaladsl.server.directives.ContentTypeResolver$
-
public class ContentTypeResolver$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ContentTypeResolver$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description ContentTypeResolver$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentTypeResolver
apply(scala.Function1<java.lang.String,ContentType> f)
ContentTypeResolver
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.ContentTypeResolver
withDefaultCharset(HttpCharset charset)
-
-
-
Field Detail
-
MODULE$
public static final ContentTypeResolver$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
Default
public ContentTypeResolver 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
public ContentTypeResolver withDefaultCharset(HttpCharset charset)
-
apply
public ContentTypeResolver apply(scala.Function1<java.lang.String,ContentType> f)
-
-