Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 31) sorted by last modified time

12

/unit/src/
H A Dnxt_unit.c1346 (char *) nxt_unit_sptr_get(&r->target), in nxt_unit_process_req_headers()
H A Dnxt_http.h145 nxt_str_t target; member
H A Dnxt_router.c2419 nxt_int_t target; member
2447 if (target != NULL && target->length != 0) { in nxt_router_application_init()
2452 conf->target = i; in nxt_router_application_init()
2455 conf->target = 0; in nxt_router_application_init()
3780 + r->target.length in nxt_router_access_log_writer()
3811 if (r->target.length != 0) { in nxt_router_access_log_writer()
3813 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_access_log_writer()
5279 r->app_target = conf->target; in nxt_router_process_http_request()
5537 + r->target.length + 1 in nxt_router_prepare_msg()
5607 nxt_unit_sptr_set(&req->target, p); in nxt_router_prepare_msg()
[all …]
H A Dnxt_router.h236 nxt_str_t *target, nxt_http_action_t *action);
H A Dnxt_h1proto.c644 r->target.start = h1p->parser.target_start; in nxt_h1p_header_process()
645 r->target.length = h1p->parser.target_end - h1p->parser.target_start; in nxt_h1p_header_process()
2264 size = r->method->length + sizeof(" ") + r->target.length in nxt_h1p_peer_header_send()
2288 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_h1p_peer_header_send()
H A Dnxt_http_variables.c64 *str = r->target; in nxt_http_var_request_uri()
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
/unit/src/ruby/
H A Dnxt_ruby.c774 nxt_ruby_add_sptr(hash_env, nxt_rb_request_uri_str, &r->target, in nxt_ruby_read_request()
/unit/src/python/
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
H A Dnxt_python_wsgi.c351 application = nxt_py_targets->target[req->request->app_target].application; in nxt_python_request_handler()
603 RC(nxt_python_add_sptr(pctx, nxt_py_request_uri_str, &r->target, in nxt_python_get_environ()
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()
/unit/src/perl/
H A Dnxt_perl_psgi.c627 &r->target, r->target_length)); in nxt_perl_psgi_env_create()
/unit/test/
H A Dconftest.py666 def run_process(target, *args): argument
669 process = Process(target=target, args=args)
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit-debug.service14 Wants=network-online.target
15 After=network-online.target
26 WantedBy=multi-user.target
/unit/pkg/deb/debian/
H A Dunit-debug.service3 Wants=network-online.target
4 After=network-online.target
14 WantedBy=multi-user.target
/unit/src/test/
H A Dnxt_unit_app_test.c232 p = copy(p, nxt_unit_sptr_get(&r->target), r->target_length); in greeting_app_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_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()
/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()
/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()

12