ApiGatewayRequestContext class
Constructors
-
ApiGatewayRequestContext({required String accountId, required String apiId, required Map<String, ApiGatewayAuthorizer> authorizer, required String domainName, required String domainPrefix, required Map<String, String> http, required String requestId, required String routeKey, required String stage, required DateTime time, required int timeEpoch})
-
-
ApiGatewayRequestContext.fromJson(Map<String, dynamic> json)
-
factory
Methods
-
attach<T>(T value)
→ T
-
Attaches a contextual value to this instance and returns the
value
.
The type of T
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 the handler
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