class HttpRedirect
source · line 32public
public class HttpRedirect internal constructor(
/**
* The URL that returned the redirect.
*/
public val url: Url,
/**
* The method used for the redirecting request.
*/
public val method: String,
/**
* The redirect response head.
*/
public val head: HttpResponseHead,
/**
* The resolved URL selected for the next request.
*/
public val nextUrl: Url,
/**
* The method selected after redirect rewriting rules.
*/
public val nextMethod: String
)
One completed redirect step with original request, response, and selected next URL/method.
property nextMethod
source · line 52public
public val nextMethod: String
get: public read-only
The method selected after redirect rewriting rules.
property method
source · line 40public
public val method: String
get: public read-only
The method used for the redirecting request.
property head
source · line 44public
public val head: HttpResponseHead
get: public read-only
The redirect response head.
property nextUrl
source · line 48public
public val nextUrl: Url
get: public read-only
The resolved URL selected for the next request.
property url
source · line 36public
public val url: Url
get: public read-only
The URL that returned the redirect.