abstract class ByteArrayContent : OutgoingContent
Variant of a OutgoingContent with payload represented as ByteArray
ByteArrayContent()
Variant of a OutgoingContent with payload represented as ByteArray |
open val contentLength: Long?
Specifies content length in bytes for this resource. |
|
open val contentType: ContentType?
Specifies ContentType for this resource. |
|
open val headers: Headers
Headers to set when sending this content |
|
open val status: HttpStatusCode?
Status code to set when sending this content |
abstract fun bytes(): ByteArray
Provides ByteArray which engine will send to peer |
open fun <T : Any> getProperty(key: AttributeKey<T>): T?
Gets an extension property for this content |
|
open fun <T : Any> setProperty(key: AttributeKey<T>, value: T?): Unit
Sets an extension property for this content |
class ByteArrayContent : ByteArrayContent
Implementation of the OutgoingContent.ByteArrayContent for sending array of bytes |
|
class TextContent : ByteArrayContent
Represents a text content that could be sent |