public class ContentTypeResolver$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ContentTypeResolver$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
ContentTypeResolver$() |
Modifier and Type | Method and 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) |
public static final ContentTypeResolver$ MODULE$
public ContentTypeResolver Default()
public ContentTypeResolver withDefaultCharset(HttpCharset charset)
public ContentTypeResolver apply(scala.Function1<java.lang.String,ContentType> f)