CloudFrontOriginResponse class
A response message from a CloudFront Origin Request Event
- Inheritance
-
- Object
- AppContract
- CloudFrontOriginResponse
- Annotations
-
- @JsonSerializable()
Constructors
- CloudFrontOriginResponse({String? body, CloudFrontBodyEncoding bodyEncoding = CloudFrontBodyEncoding.text, CloudFrontHeaders? headers, int status = 200, String? statusDescription = "OK"})
-
CloudFrontOriginResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- body → String?
-
The body, if any, that you want CloudFront to return in the generated response.
final
- bodyEncoding → CloudFrontBodyEncoding
-
The encoding for the value that you specified in the
body
. The only valid encodings aretext
andbase64
. If you includebody
in theresponse
object but omitbodyEncoding
, CloudFront treats the body astext
. If you specifybodyEncoding
asbase64
but the body is not validbase64
, CloudFront returns an error.final - hashCode → int
-
The hash code for this object.
no setterinherited
- headers ↔ CloudFrontHeaders
-
Headers that you want CloudFront to return in the generated response. Note the following:
latefinal
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
The HTTP status code that you want CloudFront to use for the following:
final
- statusDescription → String?
-
The description that you want CloudFront to return in the response, to accompany the HTTP status code.
You don't need to use standard descriptions, such as OK for an HTTP status code of 200.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
attach<
T> (T value) → T -
Attaches a contextual value to this instance and returns the
value
. The type ofT
is the signature/key, attaching more than one thing of the same will only store the last one.inherited -
detach<
T> () → T? -
Detaches a contextual value from this instance and returns it, or null if
it didn't exist. The type of
T
is the signature/key of what will be removed if it exists. This won't throw if the value was NOT previously attached.inherited -
get<
T> ([MissingValueHandler? handler]) → T -
Gets a contextual value from this instance.
The type of
T
is the signature/key of what will be returned if it exists. If the value doesn't exist, it invoke thehandler
for a return value, if one was provided, or throws a BadContextError.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this instance to JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited