ByteArrayContent
class ByteArrayContent(bytes: ByteArray, val contentType: ContentType? = null, val status: HttpStatusCode? = null) : OutgoingContent.ByteArrayContent
Implementation of the OutgoingContent.ByteArrayContent for sending array of bytes
Properties
Link copied to clipboard
Gets or sets the CacheControl instance as an extension property on this content.
Link copied to clipboard
Specifies content length in bytes for this resource.
Link copied to clipboard
Specifies ContentType for this resource.
Link copied to clipboard
Status code to set when sending this content
Functions
Link copied to clipboard
fun OutgoingContent.compressed(contentEncoder: ContentEncoder, coroutineContext: CoroutineContext = EmptyCoroutineContext): OutgoingContent?
Returns OutgoingContent compressed with contentEncoder if possible.
Link copied to clipboard
Gets an extension property for this content
Link copied to clipboard
Sets an extension property for this content