ByteStringHttpBody

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

Constructors

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

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

Functions

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

This can be called several times