Headers class
A complex type that specifies the request headers, if any, that you want CloudFront to base caching on for this cache behavior.
For the headers that you specify, CloudFront 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 list that contains one
Nameelement for each header that you want CloudFront to use for caching in this cache behavior. IfQuantityis0, omitItems.final - quantity → int
-
The number of different headers that you want CloudFront to base caching on
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