Searched refs:type_len (Results 1 – 5 of 5) sorted by last modified time
/unit/src/python/ |
H A D | nxt_python_asgi_http.c | 258 Py_ssize_t type_len; in nxt_py_asgi_http_send() local 273 type_str = PyUnicode_AsUTF8AndSize(type, &type_len); in nxt_py_asgi_http_send() 276 (int) type_len, type_str); in nxt_py_asgi_http_send() 279 if (nxt_str_eq(&response_body, type_str, (size_t) type_len)) { in nxt_py_asgi_http_send() 288 if (nxt_str_eq(&response_start, type_str, (size_t) type_len)) { in nxt_py_asgi_http_send()
|
H A D | nxt_python_asgi_lifespan.c | 451 Py_ssize_t type_len; in nxt_py_asgi_lifespan_send() local 473 type_str = PyUnicode_AsUTF8AndSize(type, &type_len); in nxt_py_asgi_lifespan_send() 476 (int) type_len, type_str); in nxt_py_asgi_lifespan_send() 478 if (type_len == (Py_ssize_t) startup_complete.length in nxt_py_asgi_lifespan_send() 479 && memcmp(type_str, startup_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 484 if (type_len == (Py_ssize_t) startup_failed.length in nxt_py_asgi_lifespan_send() 485 && memcmp(type_str, startup_failed.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 491 if (type_len == (Py_ssize_t) shutdown_complete.length in nxt_py_asgi_lifespan_send() 492 && memcmp(type_str, shutdown_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 497 if (type_len == (Py_ssize_t) shutdown_failed.length in nxt_py_asgi_lifespan_send() [all …]
|
H A D | nxt_python_asgi_websocket.c | 207 Py_ssize_t type_len; in nxt_py_asgi_websocket_send() local 224 type_str = PyUnicode_AsUTF8AndSize(type, &type_len); in nxt_py_asgi_websocket_send() 227 (int) type_len, type_str); in nxt_py_asgi_websocket_send() 229 if (type_len == (Py_ssize_t) websocket_accept.length in nxt_py_asgi_websocket_send() 230 && memcmp(type_str, websocket_accept.start, type_len) == 0) in nxt_py_asgi_websocket_send() 235 if (type_len == (Py_ssize_t) websocket_close.length in nxt_py_asgi_websocket_send() 236 && memcmp(type_str, websocket_close.start, type_len) == 0) in nxt_py_asgi_websocket_send() 241 if (type_len == (Py_ssize_t) websocket_send.length in nxt_py_asgi_websocket_send() 242 && memcmp(type_str, websocket_send.start, type_len) == 0) in nxt_py_asgi_websocket_send() 248 "unexpected 'type': '%.*s'", (int) type_len, type_str); in nxt_py_asgi_websocket_send()
|
/unit/src/ |
H A D | nxt_main_process.c | 444 size_t type_len; in nxt_main_start_process_handler() local 548 for (type_len = 0; type_len != app_conf->type.length; type_len++) { in nxt_main_start_process_handler() 549 ch = app_conf->type.start[type_len]; in nxt_main_start_process_handler() 556 idx = nxt_app_parse_type(app_conf->type.start, type_len); in nxt_main_start_process_handler()
|
/unit/src/java/ |
H A D | nxt_jni_Response.c | 1031 jsize type_len; in nxt_java_Response_setContentType() local 1036 type_len = (*env)->GetArrayLength(env, type); in nxt_java_Response_setContentType() 1045 type_str, type_len); in nxt_java_Response_setContentType()
|