Lines Matching refs:scope

413     PyObject                *scope, *res, *task, *receive, *send, *done, *asgi;  in nxt_py_asgi_request_handler()  local
456 scope = nxt_py_asgi_create_http_scope(req); in nxt_py_asgi_request_handler()
457 if (nxt_slow_path(scope == NULL)) { in nxt_py_asgi_request_handler()
470 scope, receive, send, NULL); in nxt_py_asgi_request_handler()
475 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_request_handler()
549 Py_DECREF(scope); in nxt_py_asgi_request_handler()
578 PyObject *scope, *v, *type, *scheme; in nxt_py_asgi_create_http_scope() local
608 scope = nxt_py_asgi_new_scope(req, type, nxt_py_2_1_str); in nxt_py_asgi_create_http_scope()
609 if (nxt_slow_path(scope == NULL)) { in nxt_py_asgi_create_http_scope()
614 SET_ITEM(scope, http_version, p[7] == '1' ? nxt_py_1_1_str in nxt_py_asgi_create_http_scope()
616 SET_ITEM(scope, scheme, scheme) in nxt_py_asgi_create_http_scope()
625 SET_ITEM(scope, method, v) in nxt_py_asgi_create_http_scope()
635 SET_ITEM(scope, path, v) in nxt_py_asgi_create_http_scope()
654 SET_ITEM(scope, raw_path, v) in nxt_py_asgi_create_http_scope()
663 SET_ITEM(scope, query_string, v) in nxt_py_asgi_create_http_scope()
672 SET_ITEM(scope, client, v) in nxt_py_asgi_create_http_scope()
681 SET_ITEM(scope, server, v) in nxt_py_asgi_create_http_scope()
714 SET_ITEM(scope, subprotocols, v); in nxt_py_asgi_create_http_scope()
719 SET_ITEM(scope, headers, headers) 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()
1321 PyObject *scope, *asgi; in nxt_py_asgi_new_scope() local
1323 scope = PyDict_New(); in nxt_py_asgi_new_scope()
1324 if (nxt_slow_path(scope == NULL)) { in nxt_py_asgi_new_scope()
1332 if (nxt_slow_path(PyDict_SetItem(scope, nxt_py_type_str, type) == -1)) { 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()
1352 if (nxt_slow_path(PyDict_SetItem(scope, nxt_py_asgi_str, asgi) == -1)) { 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()
1389 return scope; in nxt_py_asgi_new_scope()