Response

interface Response<RespBody>

Represents a HTTP Response

Properties

Link copied to clipboard
abstract val body: RespBody?

Response body on successful de-serialization

Link copied to clipboard
abstract val code: Int

The HTTP Status Code returned from Server

Link copied to clipboard
abstract val headers: Map<String, String>

Response Headers from the Server

Link copied to clipboard
abstract val isSuccessful: Boolean

Indicates if the Http Status code is a success or failure

Link copied to clipboard
abstract val message: String

HTTP message returned from the Server