Skip to content

//okhttp/okhttp3/Response/priorResponse

priorResponse

[common, nonJvm]\ [common]\ expect val priorResponse: Response?

[nonJvm]\ actual val priorResponse: Response?

Returns the response for the HTTP redirect or authorization challenge that triggered this response, or null if this response wasn’t triggered by an automatic retry. The body of the returned response should not be read because it has already been consumed by the redirecting client.

[jvm]\

@get:JvmName(name = "priorResponse")

actual val priorResponse: Response?