public function getRequestLine($method)
    {
        $url    = $this->getUrl();
        $scheme = $url->getScheme() ? $url->getScheme() : 'http';
        $port   = $url->getPort() ? ':' . $url->getPort() : '';

        return $method . ' ' . $scheme . '://' . $url->getHost() . $port .
                $url->getPath() . $url->getEncodedRequest() . ' HTTP/1.0';
    }