Scoop API

scoop:scoop.http.client:0.1.0

HttpRedirectException

class HttpRedirectException

source · line 89
public
public class HttpRedirectException internal constructor(
    /**
     * The redirect failure category.
     */
    public val reason: HttpRedirectFailure,
    /**
         * The URL that returned the rejected redirect.
         */
    public val url: Url,
    /**
         * The redirect response head.
         */
    public val head: HttpResponseHead,
    /**
     * The resolved destination when it could be determined.
     */
    public val destination: Url? = None,
    /**
         * The underlying failure, if any.
         */
    public val cause: Throwable? = None
) : Exception(Some(redirectFailureMessage(reason)))

A rejected redirect, retaining the source response, destination when known, and underlying cause.

property destination

source · line 105
public
public val destination: Url? = None

get: public read-only

The resolved destination when it could be determined.

property url

source · line 97
public
public val url: Url

get: public read-only

The URL that returned the rejected redirect.