CapturedPriorResponse

class CapturedPriorResponse(val url: String, val statusCode: Int)

A response the HTTP client answered with another request before the final response: a redirect it followed, or an authentication challenge it answered. Reported in CapturedResponse.priorResponses.

Deliberately NOT a data class so the public surface stays stable.

Constructors

Link copied to clipboard
constructor(url: String, statusCode: Int)

Properties

Link copied to clipboard

The status code of this response, such as 301 or 401.

Link copied to clipboard
val url: String

The URL of the request this response answered, before redaction.