Http/Response.php
public function redirect($url, $status = 302)
    {
        $this->_headers['Location'] = (string) $url;
        $this->_status = (integer) $status;

        return $this;
    }
public function redirect($url, $status = 302)
    {
        $this->_headers['Location'] = (string) $url;
        $this->_status = (integer) $status;

        return $this;
    }
public function redirect ( $ url , $ status = 302 ) { $ this -> _headers [ 'Location' ] = ( string ) $ url ; $ this -> _status = ( integer ) $ status ; return $ this ; }
Automatically sets the response headers and status for
a redirect.

@param string $url
@param int $status
@return \m\Http\Response
Automatically sets the response headers and status for a redirect .