PlainTextFormat

A BodyFormat for plain text bodies.

Properties

Link copied to clipboard
open override val contentType: String

The content type of the body.

Link copied to clipboard

The serialization engine that produced this format, if any.

Functions

Link copied to clipboard
open override fun decode(bytes: ByteArray, contentType: String): String

Decodes the byte array into the type T.

Link copied to clipboard
open override fun encode(value: String): ByteArray

Encodes the value into a byte array for transmission.