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 support for lifespan state #324

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

FurqanHabibi
Copy link

@FurqanHabibi FurqanHabibi commented Jun 13, 2024

Closes #323

The lifespan state is created in lifespan cycle, and a shallow copy is passed in http cycle.
Also added test to confirm the functionality.

Note that a sub-dependency Hypercorn need to be pinned to support testing on python 3.7.

@@ -11,3 +11,4 @@ brotli
brotli-asgi
mkdocs
mkdocs-material
Hypercorn < 0.15.0 # to test python 3.7
Copy link
Owner

Choose a reason for hiding this comment

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

You can remove this, I've pinned on pyproject.toml.

@Kludex
Copy link
Owner

Kludex commented Sep 20, 2024

@FurqanHabibi Would you like to rebase this? 🙏

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 lifespan state
2 participants