ByteArrayContent
abstract class ByteArrayContent : OutgoingContent
Variant of a OutgoingContent with payload represented as ByteArray
Constructors
ByteArrayContent() Variant of a OutgoingContent with payload represented as ByteArray |
Inherited Properties
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 |
Functions
abstract fun bytes(): ByteArray Provides ByteArray which engine will send to peer |
Inherited Functions
open fun <T : Any> getProperty(key: AttributeKey<T>): T? Gets an extension property for this content |
|
open fun <T : Any> setProperty( Sets an extension property for this content |
Inheritors
class ByteArrayContent : ByteArrayContent Implementation of the OutgoingContent.ByteArrayContent for sending array of bytes |
|
class FormDataContent : ByteArrayContent OutgoingContent with for application/x-www-form-urlencoded formatted request. |
|
class TextContent : ByteArrayContent Represents a text content that could be sent |