StreamCryptoStateBodyContent

internal class StreamCryptoStateBodyContent(fileContentStream: () -> <Error class: unknown class>, fileSize: Long)

Custom OutgoingContent implementation to stream the crypto state backup as multipart/form-data without loading it all into memory. The content is structured as follows: --boundary Content-Disposition: form-data; name="file"; filename="CHANGELOG.zip" Content-Type: application/octet-stream Content-Length: --boundary--

Constructors

Link copied to clipboard
constructor(fileContentStream: () -> <Error class: unknown class>, fileSize: Long)

Properties

Link copied to clipboard
open val contentLength: Long
Link copied to clipboard
open val contentType: <Error class: unknown class>

Functions

Link copied to clipboard
open suspend fun writeTo(channel: <Error class: unknown class>)