List<String> headers = new ArrayList<>();
Map<String, Object> policy = new HashMap<>();
boolean setAllHeaders = this.setAllHeaders;
final WebClient webClient = WebClient.detect(request.getHeader("user-agent"));
WebClient.UserAgent userAgent = webClient.getUserAgent();
int version = webClient.getMajorVersion();
for (String directive : DIRECTIVES) {
Object value = options.getField(directive);
if (value != null) {
policy.put(directive, value);