Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 22 of 22) sorted by relevance

/unit/test/python/lifespan/empty/
H A Dasgi.py4 async def handler(prefix, scope, receive, send): argument
5 if scope['type'] == 'lifespan':
8 scope['asgi']['version'] + ' ' + scope['asgi']['spec_version']
20 if scope['type'] == 'http':
30 async def application(scope, receive, send): argument
31 return await handler('', scope, receive, send)
34 async def application2(scope, receive, send): argument
35 return await handler('app2_', scope, receive, send)
/unit/test/python/targets/
H A Dasgi.py1 async def application_201(scope, receive, send): argument
2 assert scope['type'] == 'http'
13 async def application_200(scope, receive, send): argument
14 assert scope['type'] == 'http'
25 def legacy_application_200(scope): argument
26 assert scope['type'] == 'http'
41 def legacy_application_201(scope, receive=None, send=None): argument
42 assert scope['type'] == 'http'
/unit/test/python/variables/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
11 headers = scope.get('headers', [])
27 (b'request-method', scope['method'].encode()),
28 (b'request-uri', scope['path'].encode()),
30 (b'http-version', scope['http_version'].encode()),
31 (b'asgi-version', scope['asgi']['version'].encode()),
32 (b'asgi-spec-version', scope['asgi']['spec_version'].encode()),
33 (b'scheme', scope['scheme'].encode()),
/unit/test/python/query_string/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
10 (b'query-string', scope['query_string']),
/unit/test/python/server_port/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
10 (b'server-port', str(scope['server'][1]).encode()),
/unit/test/python/websockets/subprotocol/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'websocket'
7 subprotocols = scope['subprotocols']
/unit/test/python/threads/
H A Dasgi.py5 async def application(scope, receive, send): argument
6 assert scope['type'] == 'http'
8 headers = scope.get('headers', [])
/unit/test/python/lifespan/error_auto/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
/unit/test/python/lifespan/error/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 if scope['type'] != 'http':
/unit/test/python/204_no_content/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
/unit/test/python/empty/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
/unit/test/python/legacy/
H A Dasgi.py1 def application(scope): argument
2 assert scope['type'] == 'http'
/unit/test/python/lifespan/failed/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 if scope['type'] == 'lifespan':
/unit/test/python/legacy_force/
H A Dasgi.py1 def application(scope, receive=None, send=None): argument
2 assert scope['type'] == 'http'
/unit/test/python/websockets/mirror/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 if scope['type'] == 'websocket':
/unit/test/python/delayed/
H A Dasgi.py4 async def application(scope, receive, send): argument
5 assert scope['type'] == 'http'
14 headers = scope.get('headers', [])
/unit/src/python/
H A Dnxt_python_asgi.c549 Py_DECREF(scope); in nxt_py_asgi_request_handler()
635 SET_ITEM(scope, path, v) in nxt_py_asgi_create_http_scope()
722 return scope; in nxt_py_asgi_create_http_scope()
728 Py_DECREF(scope); in nxt_py_asgi_create_http_scope()
1323 scope = PyDict_New(); in nxt_py_asgi_new_scope()
1335 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1346 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1356 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1368 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1381 Py_DECREF(scope); in nxt_py_asgi_new_scope()
[all …]
H A Dnxt_python_asgi_lifespan.c112 PyObject *scope, *res, *py_task, *receive, *send, *done; in nxt_py_asgi_lifespan_target_startup() local
167 scope = nxt_py_asgi_new_scope(NULL, nxt_py_lifespan_str, nxt_py_2_0_str); in nxt_py_asgi_lifespan_target_startup()
168 if (nxt_slow_path(scope == NULL)) { in nxt_py_asgi_lifespan_target_startup()
176 scope, receive, send, NULL); in nxt_py_asgi_lifespan_target_startup()
181 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_lifespan_target_startup()
263 Py_DECREF(scope); in nxt_py_asgi_lifespan_target_startup()
/unit/test/python/mirror/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
/unit/test/python/threading/
H A Dasgi.py29 async def application(scope, receive, send): argument
30 assert scope['type'] == 'http'
/unit/src/nodejs/unit-http/
H A Dunit.cpp320 nxt_handle_scope scope(env()); in request_handler() local
364 nxt_handle_scope scope(env()); in websocket_handler() local
407 nxt_handle_scope scope(env()); in close_handler() local
453 nxt_handle_scope scope(env()); in shm_ack_handler() local
551 nxt_handle_scope scope(env()); in quit() local
/unit/test/
H A Dconftest.py239 @pytest.fixture(scope='class', autouse=True)