@@ -40,6 +40,7 @@ public class Configuration {
4040 public Map <String , Object > properties = new HashMap <String , Object >();
4141 public Boolean secureCdnSubdomain ;
4242 public boolean useRootPath ;
43+ public boolean useFetchFormat ;
4344 public int timeout ;
4445 public boolean loadStrategies = true ;
4546 public boolean clientHints = false ;
@@ -68,6 +69,7 @@ private Configuration(
6869 int proxyPort ,
6970 Boolean secureCdnSubdomain ,
7071 boolean useRootPath ,
72+ boolean useFetchFormat ,
7173 int timeout ,
7274 boolean loadStrategies ,
7375 boolean forceVersion ,
@@ -90,6 +92,7 @@ private Configuration(
9092 this .proxyPort = proxyPort ;
9193 this .secureCdnSubdomain = secureCdnSubdomain ;
9294 this .useRootPath = useRootPath ;
95+ this .useFetchFormat = useFetchFormat ;
9396 this .timeout = timeout ;
9497 this .loadStrategies = loadStrategies ;
9598 this .forceVersion = forceVersion ;
@@ -121,6 +124,7 @@ public void update(Map config) {
121124 this .proxyPort = ObjectUtils .asInteger (config .get ("proxy_port" ), 0 );
122125 this .secureCdnSubdomain = ObjectUtils .asBoolean (config .get ("secure_cdn_subdomain" ), null );
123126 this .useRootPath = ObjectUtils .asBoolean (config .get ("use_root_path" ), false );
127+ this .useFetchFormat = ObjectUtils .asBoolean (config .get ("use_fetch_format" ), false );
124128 this .loadStrategies = ObjectUtils .asBoolean (config .get ("load_strategies" ), true );
125129 this .timeout = ObjectUtils .asInteger (config .get ("timeout" ), 0 );
126130 this .clientHints = ObjectUtils .asBoolean (config .get ("client_hints" ), false );
@@ -158,6 +162,7 @@ public Map<String, Object> asMap() {
158162 map .put ("proxy_port" , proxyPort );
159163 map .put ("secure_cdn_subdomain" , secureCdnSubdomain );
160164 map .put ("use_root_path" , useRootPath );
165+ map .put ("use_fetch_format" , useFetchFormat );
161166 map .put ("load_strategies" , loadStrategies );
162167 map .put ("timeout" , timeout );
163168 map .put ("client_hints" , clientHints );
@@ -190,6 +195,7 @@ public Configuration(Configuration other) {
190195 this .proxyPort = other .proxyPort ;
191196 this .secureCdnSubdomain = other .secureCdnSubdomain ;
192197 this .useRootPath = other .useRootPath ;
198+ this .useFetchFormat = other .useFetchFormat ;
193199 this .timeout = other .timeout ;
194200 this .clientHints = other .clientHints ;
195201 if (other .authToken != null ) {
@@ -306,6 +312,7 @@ public static class Builder {
306312 private int proxyPort ;
307313 private Boolean secureCdnSubdomain ;
308314 private boolean useRootPath ;
315+ private boolean useFetchFormat ;
309316 private boolean loadStrategies = true ;
310317 private int timeout ;
311318 private boolean clientHints = false ;
@@ -347,6 +354,7 @@ public Configuration build() {
347354 proxyPort ,
348355 secureCdnSubdomain ,
349356 useRootPath ,
357+ useFetchFormat ,
350358 timeout ,
351359 loadStrategies ,
352360 forceVersion ,
@@ -453,6 +461,11 @@ public Builder setUseRootPath(boolean useRootPath) {
453461 return this ;
454462 }
455463
464+ public Builder setUseFetchFormat (boolean useFetchFormat ) {
465+ this .useFetchFormat = useFetchFormat ;
466+ return this ;
467+ }
468+
456469 public Builder setLoadStrategies (boolean loadStrategies ) {
457470 this .loadStrategies = loadStrategies ;
458471 return this ;
@@ -514,6 +527,7 @@ public Builder from(Configuration other) {
514527 this .proxyPort = other .proxyPort ;
515528 this .secureCdnSubdomain = other .secureCdnSubdomain ;
516529 this .useRootPath = other .useRootPath ;
530+ this .useFetchFormat = other .useFetchFormat ;
517531 this .loadStrategies = other .loadStrategies ;
518532 this .timeout = other .timeout ;
519533 this .clientHints = other .clientHints ;
0 commit comments