class TextContent : ByteArrayContent
Represents a text content that could be sent
TextContent(text: String, contentType: ContentType, status: HttpStatusCode? = null)
Represents a text content that could be sent |
val contentLength: Long
Specifies content length in bytes for this resource. |
|
val contentType: ContentType
Specifies ContentType for this resource. |
|
val status: HttpStatusCode?
Status code to set when sending this content |
|
val text: String
to be sent |
fun bytes(): ByteArray
Provides ByteArray which engine will send to peer |
|
fun toString(): String |
var OutgoingContent.caching: CachingOptions?
Gets or sets CacheControl instance as an extension property on this content |
|
var OutgoingContent.versions: List<Version>
Gets or sets list of Version instances as an extension property on this content |