Skip to content

Expose the raw http path coming from the lambda event. #453

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

Merged
merged 1 commit into from
Mar 23, 2022
Merged

Conversation

calavera
Copy link
Contributor

The API GW url includes th API GW stage information, so it's not easy to know what's the raw http path coming into the event.

With this change, we expose the raw http path in a general way, so people that need to know the exact raw path have a common interface, regardless of where the event comes from.

I believe this is a better solution to #450 than #451 because the AWS documentation explicitly says that the API GW URL includes the stage when requests come in, see https://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html, so our behavior is going to be more expected by API GW users with our current implementation. However, I see the need to access the raw path when you write integrations with other services. With this change, people can access that raw path in a consistent manner regardless where the event comes from.

/cc @bnusunny

Signed-off-by: David Calavera [email protected]

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 API GW url includes th API GW stage information, so
it's not easy to know what's the raw http path coming into
the event.

With this change, we expose the raw http path in a general
way, so people that need to know the exact raw path have
a common interface, regardless of where the event comes from.

Signed-off-by: David Calavera <[email protected]>
Copy link
Contributor

@nmoutschen nmoutschen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@calavera calavera merged commit 3e37818 into main Mar 23, 2022
@calavera calavera deleted the raw_http_path branch March 23, 2022 15:02
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