You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ever since I started working on scopes for Starlette web framework (see #77), I realized that there's no Starlette specific facilities (like Flask provides) to access application or request states from any point of execution.
Thus, I'll need to go through a special ASGI middleware to define those scopes, and this approach will work for any ASGI framework.
At this point I'm thinking about three types of scopes: application and request scopes. The middleware must be recommended to be a top-level (or the most outer middleware), and it must save both the current ASGI application and current request context in a global contextvar variable.
The text was updated successfully, but these errors were encountered:
ASGI is a spiritual successor to WSGI, intended to provide a standard
interface between async-capable Python web servers, frameworks, and
applications. Most web frameworks (e.g., FastAPI, Starlette) sit on top
of this protocol.
Resolves: #80
Ever since I started working on scopes for Starlette web framework (see #77), I realized that there's no Starlette specific facilities (like Flask provides) to access application or request states from any point of execution.
Thus, I'll need to go through a special ASGI middleware to define those scopes, and this approach will work for any ASGI framework.
At this point I'm thinking about three types of scopes: application and request scopes. The middleware must be recommended to be a top-level (or the most outer middleware), and it must save both the current ASGI application and current request context in a global
contextvar
variable.The text was updated successfully, but these errors were encountered: