HeaderObject class
Describes the request headers that a Lightsail distribution bases caching on.
For the headers that you specify, your distribution caches separate versions
of the specified content 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 your distribution to cache your content
based on values in the product
header. Your distribution
forwards the product
header to the origin and caches the
response from the origin once for each header value.
Constructors
-
HeaderObject({List<
HeaderEnum> ? headersAllowList, ForwardValues? option}) -
HeaderObject.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headersAllowList
→ List<
HeaderEnum> ? -
The specific headers to forward to your distribution's origin.
final
- option → ForwardValues?
-
The headers that you want your distribution to forward to your origin and
base caching on.
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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited