src/net/http/HttpRequest.php
public function setUrl($url) {
        if (!is_string($url)) throw new IllegalTypeException('Illegal type of parameter $url: '.gettype($url));

        // TODO: validate URL

        if (strpos($url, ' ') !== false)
            throw new InvalidArgumentException('Invalid argument $url: '.$url);

        $this->url = $url;
        return $this;
    }
public function setUrl($url) {
        if (!is_string($url)) throw new IllegalTypeException('Illegal type of parameter $url: '.gettype($url));

        // TODO: validate URL

        if (strpos($url, ' ') !== false)
            throw new InvalidArgumentException('Invalid argument $url: '.$url);

        $this->url = $url;
        return $this;
    }
public function setUrl ( $ url ) { if ( ! is_string ( $ url ) ) throw new IllegalTypeException ( 'Illegal type of parameter $url: ' . gettype ( $ url ) ) ; // TODO: validate URL if ( strpos ( $ url , ' ' ) !== false ) throw new InvalidArgumentException ( 'Invalid argument $url: ' . $ url ) ; $ this -> url = $ url ; return $ this ; }
Set the request's URL.

@param  string $url

@return $this
Set the request s URL .