Searched refs:type_len (Results 1 – 5 of 5) sorted by relevance
/unit/src/python/ |
H A D | nxt_python_asgi_lifespan.c | 409 Py_ssize_t type_len; in nxt_py_asgi_lifespan_send() local 431 type_str = PyUnicode_AsUTF8AndSize(type, &type_len); in nxt_py_asgi_lifespan_send() 434 (int) type_len, type_str); in nxt_py_asgi_lifespan_send() 436 if (type_len == (Py_ssize_t) startup_complete.length in nxt_py_asgi_lifespan_send() 437 && memcmp(type_str, startup_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 442 if (type_len == (Py_ssize_t) startup_failed.length in nxt_py_asgi_lifespan_send() 443 && memcmp(type_str, startup_failed.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 449 if (type_len == (Py_ssize_t) shutdown_complete.length in nxt_py_asgi_lifespan_send() 450 && memcmp(type_str, shutdown_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send() 455 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()
|
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()
|
/unit/src/ |
H A D | nxt_main_process.c | 369 size_t type_len; in nxt_main_start_process_handler() local 473 for (type_len = 0; type_len != app_conf->type.length; type_len++) { in nxt_main_start_process_handler() 474 ch = app_conf->type.start[type_len]; in nxt_main_start_process_handler() 481 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 | 1030 jsize type_len; in nxt_java_Response_setContentType() local 1035 type_len = (*env)->GetArrayLength(env, type); in nxt_java_Response_setContentType() 1044 type_str, type_len); in nxt_java_Response_setContentType()
|