Returns the request as a string.
string The request
public function __toString() {
return sprintf('%s %s %s', $this
->getMethod(), $this
->getRequestUri(), $this->server
->get('SERVER_PROTOCOL')) . "\r\n" . $this->headers . "\r\n" . $this
->getContent();
}