HttpResponse

Interface of HTTP response

Properties

Link copied to clipboard
abstract val isSuccess: Boolean

true means success response

Functions

Link copied to clipboard
abstract fun bodyBytes(limit: Int = 0): ByteArray?

Read body as byteArray

Link copied to clipboard
abstract fun bodyString(limit: Int = 0): String?

Read body as string

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun header(name: String): String?

Get the response header