ByteStringHttpBody

class ByteStringHttpBody(val contentType: String, byteString: ByteString) : HttpBody

Constructors

Link copied to clipboard
fun ByteStringHttpBody(contentType: String, string: String)
Link copied to clipboard
fun ByteStringHttpBody(contentType: String, byteString: ByteString)

Functions

Link copied to clipboard
open override fun writeTo(bufferedSink: BufferedSink)

This can be called several times

Properties

Link copied to clipboard
open override val contentLength: Long

The number of bytes that will be written when calling writeTo, or -1 if that count is unknown.

Link copied to clipboard
open override val contentType: String