code: @InterfaceAudience.Public
      public void setHeaders(Map<String, Object> requestHeadersParam) {
          // Fix - https://github.com/couchbase/couchbase-lite-java-core/issues/1617
          storeCookiesIntoCookieJar(requestHeadersParam);
  
          properties.put(ReplicationField.REQUEST_HEADERS, requestHeadersParam);
          replicationInternal.setHeaders(requestHeadersParam);
      }
docs: Set Extra HTTP headers to be sent in all requests to the remote server.