kohttp / io.github.rybalkinsd.kohttp.ext / EagerResponse

EagerResponse

data class EagerResponse

EagerResponse is basically the same class as okhttp3.Response except:

Since
0.3.0

Author
sergey

Constructors

<init>

EagerResponse(request: Request, protocol: Protocol, code: Int, message: String, handshake: Handshake?, headers: List<Header>, body: String?, networkResponse: Response?, cacheResponse: Response?, priorResponse: Response?, sentRequestAtMillis: Long, receivedResponseAtMillis: Long)

EagerResponse is basically the same class as okhttp3.Response except:

Properties

body

val body: String?

cacheResponse

val cacheResponse: Response?

code

val code: Int

handshake

val handshake: Handshake?

headers

val headers: List<Header>

message

val message: String

networkResponse

val networkResponse: Response?

priorResponse

val priorResponse: Response?

protocol

val protocol: Protocol

receivedResponseAtMillis

val receivedResponseAtMillis: Long

request

val request: Request

sentRequestAtMillis

val sentRequestAtMillis: Long