constructor(connection, request) {
    this.connection = connection;
    this._content = null;
    this.ips = connection.ips;
    this.query = request.getQuery();
    this.path = request.getUrl();

    if (this.query && this.query.length > 0) {
      this.path = `${request.getUrl()}?${this.query}`;
    } else {
      this.path = request.getUrl();
    }

    // @deprecated use "path" instead
    this.url = this.path;

    this.method = request.getMethod().toUpperCase();
    this.headers = {};

    request.forEach((name, value) => (this.headers[name] = value));

    this.requestId = this.headers["x-kuzzle-request-id"] || connection.id;
  }
@param {ClientConnection} connection
@param {uWS.HttpRequest} request