ParametersInCacheKeyAndForwardedToOrigin.fromXml constructor

ParametersInCacheKeyAndForwardedToOrigin.fromXml(
  1. XmlElement elem
)

Implementation

factory ParametersInCacheKeyAndForwardedToOrigin.fromXml(_s.XmlElement elem) {
  return ParametersInCacheKeyAndForwardedToOrigin(
    cookiesConfig: CachePolicyCookiesConfig.fromXml(
        _s.extractXmlChild(elem, 'CookiesConfig')!),
    enableAcceptEncodingGzip:
        _s.extractXmlBoolValue(elem, 'EnableAcceptEncodingGzip')!,
    headersConfig: CachePolicyHeadersConfig.fromXml(
        _s.extractXmlChild(elem, 'HeadersConfig')!),
    queryStringsConfig: CachePolicyQueryStringsConfig.fromXml(
        _s.extractXmlChild(elem, 'QueryStringsConfig')!),
    enableAcceptEncodingBrotli:
        _s.extractXmlBoolValue(elem, 'EnableAcceptEncodingBrotli'),
  );
}