Package io.ktor.client.content
Types
Link copied to clipboard
class LocalFileContent(file: File, contentType: ContentType) : OutgoingContent.ReadChannelContent
Content copied to clipboard
OutgoingContent representing a local file with a specified contentType, expires date and caching
Link copied to clipboard
typealias ProgressListener = suspend (bytesSentTotal: Long, contentLength: Long) -> Unit
Content copied to clipboard
Callback that can be registered to listen for upload/download progress
Functions
Link copied to clipboard
fun LocalFileContent(baseDir: File, relativePath: String, contentType: ContentType = ContentType.defaultForFilePath(relativePath)): LocalFileContent
Content copied to clipboard
Creates an instance of LocalFileContent for a file designated by relativePath in a baseDir