public function followRedirects($follow = true)
    {
        $this->max_redirects = $follow === true ? self::MAX_REDIRECTS_DEFAULT : max(0, $follow);
        $this->follow_redirects = (bool) $follow;
        return $this;
    }
public function followRedirects($follow = true)
    {
        $this->max_redirects = $follow === true ? self::MAX_REDIRECTS_DEFAULT : max(0, $follow);
        $this->follow_redirects = (bool) $follow;
        return $this;
    }
public function followRedirects ( $ follow = true ) { $ this -> max_redirects = $ follow === true ? self :: MAX_REDIRECTS_DEFAULT : max ( 0 , $ follow ) ; $ this -> follow_redirects = ( bool ) $ follow ; return $ this ; }
If the response is a 301 or 302 redirect, automatically
send off another request to that location
@param bool|int $follow follow or not to follow or maximal number of redirects
@return Request
If the response is a 301 or 302 redirect automatically send off another request to that location