Companion

Functions

Link copied to clipboard
fun Body.Companion.bytes(bytes: ByteArray, contentType: String = "application/octet-stream"): Body
Link copied to clipboard
operator fun invoke(contentType: String, contentLength: Long? = null, provideContent: suspend () -> ByteSource): Body
Link copied to clipboard
fun Body.Companion.json(text: String, contentType: String = "application/json"): Body
Link copied to clipboard
fun multipart(contentType: String, contentLength: Long? = null, provideMultipart: suspend () -> Multipart): Body
Link copied to clipboard
fun Body.Companion.stream(inputStream: InputStream, contentType: String = "application/octet-stream"): Body
Link copied to clipboard
fun Body.Companion.text(text: String, charset: Charset = Charsets.UTF_8, contentType: String = "text/plain; charset="): Body