src/Valkyrja/Http/NativeResponse.php
public function isRedirect(string $location = null): bool
    {
        return \in_array(
                $this->statusCode,
                [
                    StatusCode::CREATED,
                    StatusCode::MOVED_PERMANENTLY,
                    StatusCode::FOUND,
                    StatusCode::SEE_OTHER,
                    StatusCode::TEMPORARY_REDIRECT,
                    StatusCode::PERMANENT_REDIRECT,
                ],
                true
            )
            && (null === $location
                ?: $location === $this->headers->get('Location'));
    }
public function isRedirect(string $location = null): bool
    {
        return \in_array(
                $this->statusCode,
                [
                    StatusCode::CREATED,
                    StatusCode::MOVED_PERMANENTLY,
                    StatusCode::FOUND,
                    StatusCode::SEE_OTHER,
                    StatusCode::TEMPORARY_REDIRECT,
                    StatusCode::PERMANENT_REDIRECT,
                ],
                true
            )
            && (null === $location
                ?: $location === $this->headers->get('Location'));
    }
Is the response a redirect of some form?

@param string $location [optional] Redirect location

@return bool