Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add with_request_context to RequestExt #523

Merged
merged 1 commit into from
Sep 5, 2022
Merged

Add with_request_context to RequestExt #523

merged 1 commit into from
Sep 5, 2022

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