http.php
protected function createResponse($socket)
    {
        $response = new SimpleHttpResponse(
                $socket,
                $this->route->getUrl(),
                $this->encoding);
        $socket->close();

        return $response;
    }
protected function createResponse($socket)
    {
        $response = new SimpleHttpResponse(
                $socket,
                $this->route->getUrl(),
                $this->encoding);
        $socket->close();

        return $response;
    }
Wraps the socket in a response parser.

@param SimpleSocket $socket   Responding socket.

@return SimpleHttpResponse    Parsed response object.