ktor-client-core / io.ktor.client.content / LocalFileContent / <init>

<init>

LocalFileContent(file: File, contentType: ContentType = ContentType.defaultForFile(file))

OutgoingContent representing a local file with a specified contentType, expires date and caching

Parameters

file - specifies the File to be served to a client