code: protected function createResponse($socket)
      {
          $response = new SimpleHttpResponse(
                  $socket,
                  $this->route->getUrl(),
                  $this->encoding);
          $socket->close();
  
          return $response;
      }
docs: Wraps the socket in a response parser.
  
  @param SimpleSocket $socket   Responding socket.
  
  @return SimpleHttpResponse    Parsed response object.