src/Requester.php
public function getUrl()
    {
        if (!$this->url) {
            throw new InvalidUrlException();
        }

        $url = $this->url;

        if (! parse_url($this->url, PHP_URL_SCHEME)) {
            $url = $this->getProtocol().$url;
        }

        return $url;
    }
public function getUrl()
    {
        if (!$this->url) {
            throw new InvalidUrlException();
        }

        $url = $this->url;

        if (! parse_url($this->url, PHP_URL_SCHEME)) {
            $url = $this->getProtocol().$url;
        }

        return $url;
    }
public function getUrl ( ) { if ( ! $ this -> url ) { throw new InvalidUrlException ( ) ; } $ url = $ this -> url ; if ( ! parse_url ( $ this -> url , PHP_URL_SCHEME ) ) { $ url = $ this -> getProtocol ( ) . $ url ; } return $ url ; }
Getter for the url will append protocol if one does not exist.

@return string
Getter for the url will append protocol if one does not exist .