body

abstract fun body(): ByteArray

Returns the body of the request as a byte array.

This is typically used for methods like POST or PUT with content types like application/json.

Return

The request body, or null if the request has no body.