/unit/test/python/targets/ |
H A D | asgi.py | 1 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 D | asgi.py | 1 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 D | asgi.py | 4 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 D | asgi.py | 1 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 D | asgi.py | 1 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 D | asgi.py | 1 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 D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'websocket' 7 subprotocols = scope['subprotocols']
|
/unit/test/python/threads/ |
H A D | asgi.py | 5 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 D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/lifespan/error/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 if scope['type'] != 'http':
|
/unit/test/python/204_no_content/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/empty/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/legacy/ |
H A D | asgi.py | 1 def application(scope): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/lifespan/failed/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 if scope['type'] == 'lifespan':
|
/unit/test/python/legacy_force/ |
H A D | asgi.py | 1 def application(scope, receive=None, send=None): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/websockets/mirror/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 if scope['type'] == 'websocket':
|
/unit/test/python/delayed/ |
H A D | asgi.py | 4 async def application(scope, receive, send): argument 5 assert scope['type'] == 'http' 14 headers = scope.get('headers', [])
|
/unit/src/python/ |
H A D | nxt_python_asgi.c | 614 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 D | nxt_python_asgi_lifespan.c | 137 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 D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'http'
|
/unit/test/python/threading/ |
H A D | asgi.py | 27 async def application(scope, receive, send): argument 28 assert scope['type'] == 'http'
|
/unit/src/nodejs/unit-http/ |
H A D | unit.cpp | 320 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 D | conftest.py | 228 @pytest.fixture(scope='class', autouse=True)
|