/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/ |
H A D | conftest.py | 239 @pytest.fixture(scope='class', autouse=True)
|
/unit/src/python/ |
H A D | nxt_python_asgi.c | 549 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 D | nxt_python_asgi_lifespan.c | 112 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/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/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/threading/ |
H A D | asgi.py | 29 async def application(scope, receive, send): argument 30 assert scope['type'] == 'http'
|
/unit/test/python/lifespan/empty/ |
H A D | asgi.py | 4 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 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 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/websockets/mirror/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 if scope['type'] == 'websocket':
|
/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/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/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/legacy_force/ |
H A D | asgi.py | 1 def application(scope, receive=None, send=None): argument 2 assert scope['type'] == 'http'
|
/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/legacy/ |
H A D | asgi.py | 1 def application(scope): argument 2 assert scope['type'] == 'http'
|
/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/test/python/empty/ |
H A D | asgi.py | 1 async def application(scope, receive, send): 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/lifespan/error/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 if scope['type'] != 'http':
|
/unit/test/python/lifespan/error_auto/ |
H A D | asgi.py | 1 async def application(scope, receive, send): argument 2 assert scope['type'] == 'http'
|