StreamCryptoStateBodyContent

internal class StreamCryptoStateBodyContent(fileContentStream: () -> Source, fileSize: Long) : OutgoingContent.WriteChannelContent

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: () -> Source, fileSize: Long)

Properties

Link copied to clipboard
open override val contentLength: Long
Link copied to clipboard
open override val contentType: ContentType
Link copied to clipboard
open val headers: Headers
Link copied to clipboard
open val status: HttpStatusCode?

Functions

Link copied to clipboard
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Link copied to clipboard
internal suspend fun OutgoingContent.observe(log: ByteWriteChannel): OutgoingContent
Link copied to clipboard
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?)
Link copied to clipboard
open fun trailers(): Headers?
Link copied to clipboard
open suspend override fun writeTo(channel: ByteWriteChannel)