Create a new redirect response to the previous location.

@param  int    $status
@param  array  $headers
@return \Illuminate\Http\RedirectResponse
554426
public function back($status = 302, $headers = array())
	{
		$back = $this->generator->previous();

		return $this->createRedirect($back, $status, $headers);
	}
798716
public function redirect($route, $parameters = [], $status = 302)
    {
        return $this->application->redirect($this->path($route, $parameters), $status);
    }
1033078
public function createResponse($statusCode, array $headers = [], array $options = [])
    {
        $body = JsonRpc\json_encode($options);

        return new Response($statusCode, $headers, $body === false ? null : $body);
    }
439695
public function redirectGuest($path, $status = 302, $headers = [], $secure = null)
    {
        respondWith(response()->redirectGuest($path, $status, $headers, $secure));
    }
640755
protected function redirect($url, $status = 302)
    {
        return $this->getResponse()
            ->withStatus($status)
            ->withHeader('Location', (string)$url);
    }
192067
public function redirect($url, $status = 302)
    {
        $response = $this;
        $response = $response->withAddedHeader('Location', (string)$url)->withStatus($status);
        return $response;
    }
350990
public function redirect($uri, int $status = 301): ResponseInterface
    {
        if (!\is_string($uri) && !$uri instanceof UriInterface) {
            throw new \InvalidArgumentException('Uri MUST be a string or Psr\Http\Message\UriInterface instance; received "' .
                (\is_object($uri) ? \get_class($uri) : \gettype($uri)) . '"');
        }

        $this->header->set('Location', (string) $uri);

        return $this->empty($status);
    }
1020891
public function asResponse($input, $status = self::OK, array $header = [])
    {
        return ResponseHelper::fill($this->response, $input, $status, $header);
    }
1213224
protected function response($bodyStream = 'php://memory', int $status = 200, array $headers = []): ResponseInterface
    {
        return $this->responseFactory->createResponse($bodyStream, $status, $headers);
    }
870270
public function redirect($url, $status = 302)
    {
        if ($status != 302) {
            $this->setStatus($status);
        }
        $this->setHeader('Location', $url);
        $this->sendHeader();
    }
340609
public function refresh($status = 302, $headers = [])
    {
        return $this->to($this->generator->getRequest()->path(), $status, $headers);
    }
520818
protected function responseRedirect($url, $status = null)
    {
        $responseWithRedirect = $this->_response->withHeader('Location', (string)$url);
        if (is_null($status) && $this->_response->getStatusCode() === 200) {
            $status = 302;
        }
        if (!is_null($status)) {
            return $responseWithRedirect->withStatus($status);
        }
        return $responseWithRedirect;
    }
468287
public function generateStreamedResponse($status = 200, $headers = array())
	{
		$content = $this->generate();
		return new StreamedResponse(function () use ($content) {
			file_put_contents('php://output', $content);
		}, $status, $headers);
	}
558635
public function withRedirect($url, $status = null)
        {
            $response = $this->withHeader('Location', (string)$url);
            if (is_null($status) && $this->getStatusCode() === 200) {
                $status = 302;
            }
            if (!is_null($status)) {
                return $response->withStatus($status);
            }
            return $response;
        }
312913
public function action( $action, $parameters = [], $status = 302, $headers = [] )
	{
		$path = $this->generator->action( $action, $parameters );

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

        return $this;
    }
775258
public function redirect($location, $status = 302)
    {
        if (!$location) {
            return;
        }
        $this->status($status);
        $headers = $this->headers();
        $headers['Location'] = $location;
        return $this;
    }