Scoop API

scoop:scoop.http.client:0.1.0

HttpRedirect

class HttpRedirect

source · line 32
public
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 52
public
public val nextMethod: String

get: public read-only

The method selected after redirect rewriting rules.

property method

source · line 40
public
public val method: String

get: public read-only

The method used for the redirecting request.

property nextUrl

source · line 48
public
public val nextUrl: Url

get: public read-only

The resolved URL selected for the next request.

property url

source · line 36
public
public val url: Url

get: public read-only

The URL that returned the redirect.