Debian Codegraph @

docs/discussion/globals.rst

raw
1 .. _globals:
2
3 Globals
4 =======
5
6 As Quart follows the Flask API, it also has globals, specifically
7 ``current_app, g, request, session``. These are globals as they are
8 likely needed in all request handlers.
9
10 Locals
11 ------
12
13 As is rather confusing from a naming point of view, the globals are
14 local to the task being executed. This is detailed from a contextual
15 view in :ref:`contexts`. This is necessary to ensure that Quart can
16 asynchronously handle many requests with a single global object.