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 ASGI handler #86

Merged
merged 9 commits into from
Apr 12, 2021
Merged

Add ASGI handler #86

merged 9 commits into from
Apr 12, 2021

Conversation

tonybaloney
Copy link
Contributor

@tonybaloney tonybaloney commented Mar 26, 2021

Implements an ASGI middleware wrapper compatible with ASGI 2.1

Closes #75

@tonybaloney tonybaloney marked this pull request as draft March 26, 2021 01:11
@tonybaloney tonybaloney marked this pull request as ready for review March 29, 2021 00:56
@tonybaloney tonybaloney changed the title [WIP] An ASGI handler Add ASGI handler Mar 29, 2021
@tonybaloney
Copy link
Contributor Author

@Hazhzeng this is ready for review now, �I've added some tests, mostly against the specification to validate types (byte strings vs unicode strings)

The CI is failing, but it doesn't look to have anything todo with this change.

Copy link
Contributor

@Hazhzeng Hazhzeng left a comment

Choose a reason for hiding this comment

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

Thanks for contributing on azure.functions. I checked the code against the https://asgi.readthedocs.io, left a few comments. Please update the code. Overall, it looks perfect.

azure/functions/_http_asgi.py Outdated Show resolved Hide resolved
azure/functions/_http_asgi.py Outdated Show resolved Hide resolved
azure/functions/_http_asgi.py Outdated Show resolved Hide resolved
@tonybaloney
Copy link
Contributor Author

@Hazhzeng amendments made as per feedback.

@Hazhzeng
Copy link
Contributor

CI error is not a code issue, this is the related issue that our github has: actions/first-interaction#10.
Merging this PR.

@Hazhzeng Hazhzeng merged commit 3e76b29 into Azure:dev Apr 12, 2021
@tonybaloney tonybaloney deleted the asgi_adaptor branch April 12, 2021 22:17
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.

Support for ASGI applications
2 participants