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

adding support for api gateway's new http apis #94

Merged
merged 5 commits into from
Apr 14, 2020
Merged

adding support for api gateway's new http apis #94

merged 5 commits into from
Apr 14, 2020

Conversation

E-G-C
Copy link

@E-G-C E-G-C commented Mar 23, 2020

The proposed changes in this pull request brings initial support for the new HTTP API .
The event dictionary passed to lambda from the new HTTP API is different from the one expected from the traditional REST API therefore mangum fails in looking up some of the expected keys.

Copy link
Collaborator

@jordaneremieff jordaneremieff left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

I have made a few comments in the review to resolve, but otherwise it should be fine to merge.

Also, if you could add a test that would be helpful, otherwise feel free to add a # pragma: no cover comment to the line causing the coverage script to fail in the build (https://github.com/erm/mangum/pull/94/files#diff-12d2884e46108e48b62f0482aa6988d3R103), and once the build is passing I can follow-up with a test before the next release.

mangum/adapter.py Outdated Show resolved Hide resolved
mangum/adapter.py Outdated Show resolved Hide resolved
@jordaneremieff
Copy link
Collaborator

Great work @E-G-C, thanks!

@jordaneremieff jordaneremieff merged commit 6871e11 into Kludex:master Apr 14, 2020
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