HttpCall

open class HttpCall(val request: HttpRequest, val response: HttpResponse, val requestTime: Instant = Instant.now(), val responseTime: Instant = Instant.now(), val coroutineContext: CoroutineContext = EmptyCoroutineContext) : CoroutineScope

A single request/response pair

Parameters

request

the original complete request

response

the HttpResponse for the given request

requestTime

the time the request was made by the engine

responseTime

the time the response was received. This is a rough estimate of Time-to-first-header (TTFH) as reported by the engine.

coroutineContext

the call context

Constructors

Link copied to clipboard
constructor(request: HttpRequest, response: HttpResponse, requestTime: Instant = Instant.now(), responseTime: Instant = Instant.now(), coroutineContext: CoroutineContext = EmptyCoroutineContext)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard