Skip to content

Conversation

@sgasse
Copy link
Contributor

@sgasse sgasse commented Sep 5, 2022

The trait RequestExt already includes functions to add query string parameters, path parameters and stage variables to a request, but none to add a RequestContext.

Issue #, if available: #522

Description of changes:
This commit adds another function to allow adding a RequestContext to the request. This is useful in cases where a lambda function is called by the API Gateway with a custom authorizer that adds parameters to the RequestContext.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

The trait `RequestExt` already includes functions to add query string
parameters, path parameters and stage variables to a request. This
commit adds another function to allow adding a `RequestContext` to the
request. This is useful in cases where a lambda function is called by
the API Gateway with a custom authorizer that adds parameters to the
`RequestContext`.

Related to #522
@calavera calavera merged commit b28b868 into awslabs:main Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants