AwsALBResponse class
Response for a request from an Application Load Balancer. It has to have a statusCode, headers and a body. They should reflect the informationen needed here.
Constructors
-
AwsALBResponse({dynamic body,
dynamic headers, dynamic isBase64Encoded, dynamic statusCode, dynamic statusDescription} ) - The Response that should be returned to the Application Load Balancer. It is constructed with some default values for the optional parameters.
-
AwsALBResponse.fromString(String body,
{bool isBase64Encoded, int statusCode, String statusDescription, Map< String, String> headers}) -
factory
Properties
- body ↔ String
-
The body of the HTTP Response send from the API Gateway to the client.
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
-
headers
↔ Map<
String, String> -
The HTTP headers that should be send with the response to the client.
read / write
- isBase64Encoded ↔ bool
-
Indicates if the body is Base64 encoded or not. By default is
false
.read / write - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- statusCode ↔ int
-
HTTP status code of the response of the API Gateway to the client.
The default status code is
200 OK
.read / write - statusDescription ↔ String
-
Description of the send HTTP status code.
read / write
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toJson(
) → Map< String, dynamic> - Returns the JSON representation of the response. This is called by the JSON encoder to produce the response.
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited