Home
last modified time | relevance | path

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

/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 async def application_prefix(scope, receive, send): argument
26 assert scope['type'] == 'http'
34 (b'prefix', scope.get('root_path', 'NULL').encode()),
42 def legacy_application_200(scope): argument
43 assert scope['type'] == 'http'
58 def legacy_application_201(scope, receive=None, send=None): argument
[all …]
/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/lifespan/empty/
H A Dasgi.py4 async def handler(prefix, scope, receive, send): argument
5 if scope['type'] == 'lifespan':
20 if scope['type'] == 'http':
32 async def application(scope, receive, send): argument
33 return await handler('', scope, receive, send)
36 async def application2(scope, receive, send): argument
37 return await handler('app2_', scope, receive, send)
/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/prefix/
H A Dasgi.py1 async def application(scope, receive, send): argument
2 assert scope['type'] == 'http'
10 (b'prefix', scope.get('root_path', 'NULL').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.c614 Py_DECREF(scope); in nxt_py_asgi_request_handler()
713 SET_ITEM(scope, path, v) in nxt_py_asgi_create_http_scope()
800 return scope; in nxt_py_asgi_create_http_scope()
806 Py_DECREF(scope); in nxt_py_asgi_create_http_scope()
1433 scope = PyDict_New(); in nxt_py_asgi_new_scope()
1445 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1456 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1466 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1478 Py_DECREF(scope); in nxt_py_asgi_new_scope()
1491 Py_DECREF(scope); in nxt_py_asgi_new_scope()
[all …]
H A Dnxt_python_asgi_lifespan.c137 PyObject *scope, *res, *py_task, *receive, *send, *done; in nxt_py_asgi_lifespan_target_startup() local
193 scope = nxt_py_asgi_new_scope(NULL, nxt_py_lifespan_str, nxt_py_2_0_str); in nxt_py_asgi_lifespan_target_startup()
194 if (nxt_slow_path(scope == NULL)) { in nxt_py_asgi_lifespan_target_startup()
205 if (nxt_slow_path(PyDict_SetItem(scope, nxt_py_state_str, in nxt_py_asgi_lifespan_target_startup()
218 scope, receive, send, NULL); in nxt_py_asgi_lifespan_target_startup()
223 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_lifespan_target_startup()
305 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.py27 async def application(scope, receive, send): argument
28 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.py228 @pytest.fixture(scope='class', autouse=True)