public function redirect(ClientInterface $client, string $url, int $status = 302): EndPointInterface
    {
        $client->acceptResponse(new Response\RedirectResponse($url, $status));

        return $this;
    }
public function redirect(ClientInterface $client, string $url, int $status = 302): EndPointInterface
    {
        $client->acceptResponse(new Response\RedirectResponse($url, $status));

        return $this;
    }
public function redirect ( ClientInterface $ client , string $ url , int $ status = 302 ) : EndPointInterface { $ client -> acceptResponse ( new Response \ RedirectResponse ( $ url , $ status ) ) ; return $ this ; }
Returns a RedirectResponse to the given URL.

@param ClientInterface $client
@param string          $url    The URL to redirect to
@param int             $status The status code to use for the Response

@return EndPointInterface
Returns a RedirectResponse to the given URL .