Home
last modified time | relevance | path

Searched refs:type_len (Results 1 – 5 of 5) sorted by last modified time

/unit/src/python/
H A Dnxt_python_asgi_http.c258 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 Dnxt_python_asgi_lifespan.c451 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 Dnxt_python_asgi_websocket.c207 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 Dnxt_main_process.c444 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 Dnxt_jni_Response.c1031 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()