fromWebConfig static method

FetchClient fromWebConfig(
  1. WebConfig webConfig
)

Implementation

static FetchClient fromWebConfig(WebConfig webConfig) {
  return FetchClient(
    mode: webConfig.mode.toRequestMode(),
    credentials: webConfig.credentials.toRequestCredentials(),
    cache: webConfig.cache.toRequestCache(),
    referrer: webConfig.referrer,
    referrerPolicy: webConfig.referrerPolicy.toRequestReferrerPolicy(),
    redirectPolicy: webConfig.redirectPolicy.toRedirectPolicy(),
    streamRequests: webConfig.streamRequests,
  );
}