parseHttpOptions() {
    const cfg = this.config.http;

    if (cfg === undefined) {
      global.kuzzle.log.warn(
        "[http] no configuration found for http: disabling it",
      );
      return { enabled: false };
    }

    // precomputes default headers
    const httpCfg = global.kuzzle.config.http;
    const headers = [
      ["Access-Control-Allow-Headers", httpCfg.accessControlAllowHeaders],
      ["Access-Control-Allow-Methods", httpCfg.accessControlAllowMethods],
      ["Content-Type", "application/json"],
    ];

    for (const header of headers) {
      header[2] = header[0]; // Save the raw header name in the third slot
      header[0] = Buffer.from(header[0]);
      header[1] = Buffer.from(header[1]);
    }

    return {
      enabled: cfg.enabled,
      headers,
      opts: {
        allowCompression: cfg.allowCompression,
        allowedContentTypes: [
          ...HTTP_ALLOWED_CONTENT_TYPES,
          ...cfg.additionalContentTypes,
        ],
        maxEncodingLayers: cfg.maxEncodingLayers,
        maxFormFileSize: cfg.maxFormFileSize,
      },
    };
  }
@deprecated -- to be removed in the next major version