public class FileContentTypeKt
Modifier and Type | Method and Description |
---|---|
static ContentType |
defaultForFileExtension(ContentType.Companion $receiver,
java.lang.String extension)
Default
class ContentType for extension |
static ContentType |
defaultForFilePath(ContentType.Companion $receiver,
java.lang.String path)
Default
class ContentType for file path |
static java.util.List<java.lang.String> |
fileExtensions(ContentType $receiver)
Recommended file name extensions for this content type
|
static java.util.List<io.ktor.http.ContentType> |
fromFileExtension(ContentType.Companion $receiver,
java.lang.String ext)
Recommended content type by file name extension
|
static java.util.List<io.ktor.http.ContentType> |
fromFilePath(ContentType.Companion $receiver,
java.lang.String path)
Recommended content types by file path
|
public static ContentType defaultForFileExtension(ContentType.Companion $receiver, java.lang.String extension)
Default class ContentType
for extension
class ContentType
public static ContentType defaultForFilePath(ContentType.Companion $receiver, java.lang.String path)
Default class ContentType
for file path
class ContentType
public static java.util.List<io.ktor.http.ContentType> fromFilePath(ContentType.Companion $receiver, java.lang.String path)
Recommended content types by file path
public static java.util.List<io.ktor.http.ContentType> fromFileExtension(ContentType.Companion $receiver, java.lang.String ext)
Recommended content type by file name extension
public static java.util.List<java.lang.String> fileExtensions(ContentType $receiver)
Recommended file name extensions for this content type