CachePolicyHeadersConfig.fromXml constructor

CachePolicyHeadersConfig.fromXml(
  1. XmlElement elem
)

Implementation

factory CachePolicyHeadersConfig.fromXml(_s.XmlElement elem) {
  return CachePolicyHeadersConfig(
    headerBehavior: _s
        .extractXmlStringValue(elem, 'HeaderBehavior')!
        .toCachePolicyHeaderBehavior(),
    headers:
        _s.extractXmlChild(elem, 'Headers')?.let((e) => Headers.fromXml(e)),
  );
}