Headers class
A complex type that specifies the headers that you want CloudFront to forward to the origin for this cache behavior.
For the headers that you specify, CloudFront also caches separate versions
of a specified object based on the header values in viewer requests. For
example, suppose viewer requests for logo.jpg
contain a custom
Product
header that has a value of either Acme
or
Apex
, and you configure CloudFront to cache your content based
on values in the Product
header. CloudFront forwards the
Product
header to the origin and caches the response from the
origin once for each header value. For more information about caching based
on header values, see How
CloudFront Forwards and Caches Headers in the Amazon CloudFront
Developer Guide.
Constructors
-
Headers({required int quantity, List<
String> ? items}) - Headers.fromXml(XmlElement elem)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
String> ? -
A complex type that contains one
Name
element for each header that you want CloudFront to forward to the origin and to vary on for this cache behavior. IfQuantity
is0
, omitItems
.final - quantity → int
-
The number of different headers that you want CloudFront to forward to the
origin for this cache behavior. You can configure each cache behavior in a
web distribution to do one of the following:
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
String elemName, {List< XmlAttribute> ? attributes}) → XmlElement
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited