KoryHttpResponse

@Serializable
data class KoryHttpResponse(val status: Int, val body: ByteArray) : JsonDecodable

HTTP response wrapper.

Constructors

Link copied to clipboard
constructor(status: Int, body: ByteArray)

Properties

Link copied to clipboard
open override val body: ByteArray

The response body as raw bytes.

Link copied to clipboard
val status: Int

The HTTP status code (e.g. 200, 404).

Functions

Link copied to clipboard
open fun decodedBody(): String
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int