Package com.autoliv.datalogger.io

Utilities for working with files with the Http requests

Types

Link copied to clipboard
class FileContent(val filePath: String, val contentType: ContentType = ContentType.defaultForFilePath(filePath))

Class to create an Http body from a binary file

Link copied to clipboard
class FileDownload(val savePath: String)

Class to save an Http response into a local file

Link copied to clipboard
class StreamContent : OutgoingContent.WriteChannelContent

Creates an Http content from a file by streaming

Functions

Link copied to clipboard
fun Hasher.streamDigest(stream: SyncStream, bufferSize: Int = 4096): Hash