Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 30) sorted by relevance

12

/unit/pkg/deb/debian/
H A Dunit.service3 Wants=network-online.target
4 After=network-online.target
14 WantedBy=multi-user.target
H A Dunit-debug.service3 Wants=network-online.target
4 After=network-online.target
14 WantedBy=multi-user.target
/unit/src/
H A Dnxt_queue.h114 #define nxt_queue_insert_after(target, link) \ argument
116 (link)->next = (target)->next; \
118 (link)->prev = (target); \
119 (target)->next = (link); \
123 #define nxt_queue_insert_before(target, link) \ argument
125 (link)->next = (target); \
126 (link)->prev = (target)->prev; \
127 (target)->prev = (link); \
H A Dnxt_php_sapi.c550 target->root.length = nxt_strlen(p); in nxt_php_set_target()
551 target->root.start = p; in nxt_php_set_target()
569 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
584 target->script_filename.start = p; in nxt_php_set_target()
587 target->root.start, target->root.length)) in nxt_php_set_target()
599 target->script_name.length = target->script_filename.length in nxt_php_set_target()
601 target->script_name.start = target->script_filename.start in nxt_php_set_target()
618 target->index.start = tmp; in nxt_php_set_target()
926 nxt_php_target_t *target; in nxt_php_request_handler() local
936 ctx.root = &target->root; in nxt_php_request_handler()
[all …]
H A Dnxt_unit_request.h43 nxt_unit_sptr_t target; member
H A Dnxt_router.h235 nxt_str_t *target, nxt_http_action_t *action);
H A Dnxt_router.c2383 nxt_int_t target; member
2411 if (target != NULL && target->length != 0) { in nxt_router_application_init()
2416 conf->target = i; in nxt_router_application_init()
2419 conf->target = 0; in nxt_router_application_init()
3744 + r->target.length in nxt_router_access_log_writer()
3775 if (r->target.length != 0) { in nxt_router_access_log_writer()
3777 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_access_log_writer()
5243 r->app_target = conf->target; in nxt_router_process_http_request()
5502 + r->target.length + 1 in nxt_router_prepare_msg()
5572 nxt_unit_sptr_set(&req->target, p); in nxt_router_prepare_msg()
[all …]
H A Dnxt_http.h145 nxt_str_t target; member
/unit/src/java/nginx/unit/websocket/
H A DUtil.java370 if (String.class.isAssignableFrom(target)) { in getMessageHandlers()
375 } else if (ByteBuffer.class.isAssignableFrom(target)) { in getMessageHandlers()
380 } else if (PongMessage.class.isAssignableFrom(target)) { in getMessageHandlers()
387 } else if (byte[].class.isAssignableFrom(target)) { in getMessageHandlers()
399 } else if (InputStream.class.isAssignableFrom(target)) { in getMessageHandlers()
407 } else if (Reader.class.isAssignableFrom(target)) { in getMessageHandlers()
461 private static DecoderMatch matchDecoders(Class<?> target, in matchDecoders() argument
468 decoderMatch = new DecoderMatch(target, decoderEntries); in matchDecoders()
579 private final Class<?> target; field in Util.DecoderMatch
582 this.target = target; in DecoderMatch()
[all …]
H A DWsSession.java232 Class<?> target = Util.getMessageType(listener); in addMessageHandler() local
233 doAddMessageHandler(target, listener); in addMessageHandler()
252 private void doAddMessageHandler(Class<?> target, MessageHandler listener) { in doAddMessageHandler() argument
265 Set<MessageHandlerResult> mhResults = Util.getMessageHandlers(target, listener, in doAddMessageHandler()
/unit/src/test/
H A Dnxt_unit_websocket_echo.c20 const char *target; in ws_echo_request_handler() local
23 target = nxt_unit_sptr_get(&req->request->target); in ws_echo_request_handler()
25 if (strcmp(target, "/") == 0) { in ws_echo_request_handler()
H A Dnxt_unit_websocket_chat.c57 const char* target = nxt_unit_sptr_get(&r->target); in ws_chat_request_handler() local
59 if (strcmp(target, "/") == 0) { in ws_chat_request_handler()
64 if (strcmp(target, "/chat") == 0) { in ws_chat_request_handler()
H A Dnxt_http_parse_test.c13 nxt_str_t target; member
736 if (str.start != test->target.start in nxt_http_parse_test_request_line()
737 && !nxt_strstr_eq(&str, &test->target)) in nxt_http_parse_test_request_line()
742 request, &str, &test->target); in nxt_http_parse_test_request_line()
H A Dnxt_unit_app_test.c232 p = copy(p, nxt_unit_sptr_get(&r->target), r->target_length); in greeting_app_request_handler()
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit.service14 Wants=network-online.target
15 After=network-online.target
26 WantedBy=multi-user.target
H A Dunit-debug.service14 Wants=network-online.target
15 After=network-online.target
26 WantedBy=multi-user.target
/unit/src/python/
H A Dnxt_python_asgi_lifespan.c31 nxt_py_asgi_ctx_data_t *ctx_data, nxt_python_target_t *target);
79 nxt_python_target_t *target; in nxt_py_asgi_lifespan_startup() local
92 target = &nxt_py_targets->target[i]; in nxt_py_asgi_lifespan_startup()
94 lifespan = nxt_py_asgi_lifespan_target_startup(ctx_data, target); in nxt_py_asgi_lifespan_startup()
110 nxt_python_target_t *target) in nxt_py_asgi_lifespan_target_startup() argument
172 if (!target->asgi_legacy) { in nxt_py_asgi_lifespan_target_startup()
175 res = PyObject_CallFunctionObjArgs(target->application, in nxt_py_asgi_lifespan_target_startup()
181 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_lifespan_target_startup()
H A Dnxt_python.c28 nxt_python_target_t *target, nxt_conf_value_t *conf);
220 ret = nxt_python_set_target(task, &targets->target[i], cv); in nxt_python_start()
227 ret = nxt_python_set_target(task, &targets->target[0], app_conf->self); in nxt_python_start()
241 proto = nxt_python_asgi_check(targets->target[0].application) in nxt_python_start()
245 probe_proto = nxt_python_asgi_check(targets->target[i].application) in nxt_python_start()
319 nxt_python_set_target(nxt_task_t *task, nxt_python_target_t *target, in nxt_python_set_target() argument
376 target->application = obj; in nxt_python_set_target()
379 Py_INCREF(target->application); in nxt_python_set_target()
680 Py_XDECREF(nxt_py_targets->target[i].application); in nxt_python_atexit()
H A Dnxt_python_asgi.c167 func = nxt_python_asgi_get_func(nxt_py_targets->target[i].application); in nxt_python_asgi_init()
180 nxt_py_targets->target[i].asgi_legacy = 1; in nxt_python_asgi_init()
415 nxt_python_target_t *target; in nxt_py_asgi_request_handler() local
464 target = &nxt_py_targets->target[req->request->app_target]; in nxt_py_asgi_request_handler()
466 if (!target->asgi_legacy) { in nxt_py_asgi_request_handler()
469 res = PyObject_CallFunctionObjArgs(target->application, in nxt_py_asgi_request_handler()
475 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_request_handler()
576 char *p, *target, *query; in nxt_py_asgi_create_http_scope() local
638 target = nxt_unit_sptr_get(&r->target); in nxt_py_asgi_create_http_scope()
642 target_length = query - target - 1; in nxt_py_asgi_create_http_scope()
[all …]
H A Dnxt_python.h49 nxt_python_target_t target[0]; member
/unit/src/java/
H A Dnxt_jni_Request.c412 char *target, *query; in nxt_java_Request_getRequestURI() local
417 target = nxt_unit_sptr_get(&r->target); in nxt_java_Request_getRequestURI()
421 return nxt_java_newString(env, target, query - target - 1); in nxt_java_Request_getRequestURI()
424 return (*env)->NewStringUTF(env, target); in nxt_java_Request_getRequestURI()
/unit/src/java/nginx/unit/websocket/server/
H A DUpgradeUtil.java246 String headerName, String target) { in headerContainsToken() argument
252 if (target.equalsIgnoreCase(token.trim())) { in headerContainsToken()
/unit/go/
H A Drequest.go44 uri := GoStringN(&req.target, C.int(req.target_length))
/unit/test/
H A Dconftest.py666 def run_process(target, *args): argument
669 process = Process(target=target, args=args)
/unit/src/nodejs/unit-http/
H A Dunit.cpp217 napi_value target, ctor, instance, jsthis; in create() local
220 target = napi.get_new_target(info); in create()
222 if (target != nullptr) { in create()
607 set_named_property(request, "url", r->target, r->target_length); in create_headers()

12