HttpRequestBody

abstract class HttpRequestBody

Represents the body of an HTTP request.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun content(): ByteArray

Returns the body of the request as a byte array.

Link copied to clipboard
abstract fun contentType(): String?

Returns the Content-Type of the request body.

Link copied to clipboard
abstract fun length(): Long

Returns the length (in bytes) of the request body.