rawBody

fun rawBody(name: String = "bytes", mediaType: MediaType? = null): RawBody(source)

Creates a binary body that passes bytes through unchanged.


fun rawBody(codec: ByteArrayCodec<ByteArray>, mediaType: MediaType? = null, name: String = "bytes"): RawBody(source)

Creates a binary body whose wire representation is controlled by codec.