Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 7 of 7) sorted by relevance

/unit/src/python/
H A Dnxt_python_asgi_http.c38 PyObject *dict);
40 PyObject *dict);
214 #define SET_ITEM(dict, key, value) \ in nxt_py_asgi_http_read_msg() argument
254 nxt_py_asgi_http_send(PyObject *self, PyObject *dict) in nxt_py_asgi_http_send() argument
266 type = PyDict_GetItem(dict, nxt_py_type_str); in nxt_py_asgi_http_send()
280 return nxt_py_asgi_http_response_body(http, dict); in nxt_py_asgi_http_send()
289 return nxt_py_asgi_http_response_start(http, dict); in nxt_py_asgi_http_send()
306 status = PyDict_GetItem(dict, nxt_py_status_str); in nxt_py_asgi_http_response_start()
316 headers = PyDict_GetItem(dict, nxt_py_headers_str); in nxt_py_asgi_http_response_start()
365 body = PyDict_GetItem(dict, nxt_py_body_str); in nxt_py_asgi_http_response_body()
[all …]
H A Dnxt_python_asgi_websocket.c51 PyObject *dict);
53 PyObject *dict);
55 PyObject *dict);
203 nxt_py_asgi_websocket_send(PyObject *self, PyObject *dict) in nxt_py_asgi_websocket_send() argument
216 type = PyDict_GetItem(dict, nxt_py_type_str); in nxt_py_asgi_websocket_send()
232 return nxt_py_asgi_websocket_accept(ws, dict); in nxt_py_asgi_websocket_send()
238 return nxt_py_asgi_websocket_close(ws, dict); in nxt_py_asgi_websocket_send()
293 headers = PyDict_GetItem(dict, nxt_py_headers_str); in nxt_py_asgi_websocket_accept()
379 code = PyDict_GetItem(dict, nxt_py_code_str); in nxt_py_asgi_websocket_close()
443 bytes = PyDict_GetItem(dict, nxt_py_bytes_str); in nxt_py_asgi_websocket_send_frame()
[all …]
H A Dnxt_python_asgi_lifespan.c35 static PyObject *nxt_py_asgi_lifespan_send(PyObject *self, PyObject *dict);
37 nxt_py_asgi_lifespan_t *lifespan, int v, PyObject *dict);
41 nxt_py_asgi_lifespan_t *lifespan, int v, PyObject *dict);
405 nxt_py_asgi_lifespan_send(PyObject *self, PyObject *dict) in nxt_py_asgi_lifespan_send() argument
423 type = PyDict_GetItem(dict, nxt_py_type_str); in nxt_py_asgi_lifespan_send()
445 msg = PyDict_GetItem(dict, nxt_py_message_str); in nxt_py_asgi_lifespan_send()
458 msg = PyDict_GetItem(dict, nxt_py_message_str); in nxt_py_asgi_lifespan_send()
H A Dnxt_python_asgi.c585 #define SET_ITEM(dict, key, value) \ in nxt_py_asgi_create_http_scope() argument
586 if (nxt_slow_path(PyDict_SetItem(dict, nxt_py_ ## key ## _str, value) \ in nxt_py_asgi_create_http_scope()
590 #dict "." #key "' item"); \ in nxt_py_asgi_create_http_scope()
/unit/test/unit/
H A Dcontrol.py19 if isinstance(conf, dict) or isinstance(conf, list):
H A Dhttp.py67 elif isinstance(body, dict):
296 if isinstance(value, dict):
323 if isinstance(value, dict):
/unit/test/
H A Dtest_routing.py1053 hds = dict({"Host": "localhost", "Connection": "close"}, **hds)
1057 hds = dict({"Host": "localhost", "Connection": "close"}, **hds)