public function url($withParams = false)
    {
        $url = $this->scheme() . '://';
        $url .= $this->domain();

        return $url . $this->urlPath($withParams);
    }
public function url($withParams = false)
    {
        $url = $this->scheme() . '://';
        $url .= $this->domain();

        return $url . $this->urlPath($withParams);
    }
public function url ( $ withParams = false ) { $ url = $ this -> scheme ( ) . '://' ; $ url .= $ this -> domain ( ) ; return $ url . $ this -> urlPath ( $ withParams ) ; }
Gets request URL

@param bool $withParams Whether to preserve URL parameters

@return string URL of this request
Gets request URL