Home
last modified time | relevance | path

Searched refs:type_str (Results 1 – 5 of 5) sorted by relevance

/unit/src/python/
H A Dnxt_python_asgi_lifespan.c408 const char *type_str; 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()
437 && memcmp(type_str, startup_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send()
443 && memcmp(type_str, startup_failed.start, type_len) == 0) in nxt_py_asgi_lifespan_send()
450 && memcmp(type_str, shutdown_complete.start, type_len) == 0) in nxt_py_asgi_lifespan_send()
456 && memcmp(type_str, shutdown_failed.start, type_len) == 0) in nxt_py_asgi_lifespan_send()
H A Dnxt_python_asgi_http.c257 const char *type_str; 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_websocket.c206 const char *type_str; 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()
230 && memcmp(type_str, websocket_accept.start, type_len) == 0) in nxt_py_asgi_websocket_send()
236 && memcmp(type_str, websocket_close.start, type_len) == 0) 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/java/
H A Dnxt_jni_Response.c1029 char *type_str; in nxt_java_Response_setContentType() local
1037 type_str = (*env)->GetPrimitiveArrayCritical(env, type, NULL); in nxt_java_Response_setContentType()
1038 if (type_str == NULL) { in nxt_java_Response_setContentType()
1044 type_str, type_len); in nxt_java_Response_setContentType()
1049 (*env)->ReleasePrimitiveArrayCritical(env, type, type_str, 0); in nxt_java_Response_setContentType()
/unit/src/
H A Dnxt_conf_validation.c2412 static nxt_str_t type_str = nxt_string("type"); in nxt_conf_vldt_app() local
2433 type_value = nxt_conf_get_object_member(value, &type_str, NULL); in nxt_conf_vldt_app()
2440 ret = nxt_conf_vldt_type(vldt, &type_str, type_value, NXT_CONF_VLDT_STRING); in nxt_conf_vldt_app()