Home
last modified time | relevance | path

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

12

/unit/src/
H A Dnxt_php_sapi.c558 target->root.length = nxt_strlen(p); in nxt_php_set_target()
559 target->root.start = p; in nxt_php_set_target()
577 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
592 target->script_filename.start = p; in nxt_php_set_target()
595 target->root.start, target->root.length)) in nxt_php_set_target()
607 target->script_name.length = target->script_filename.length in nxt_php_set_target()
609 target->script_name.start = target->script_filename.start in nxt_php_set_target()
626 target->index.start = tmp; in nxt_php_set_target()
1009 nxt_php_target_t *target; in nxt_php_request_handler() local
1019 ctx.root = &target->root; in nxt_php_request_handler()
[all …]
H A Dnxt_http_variables.c286 *str = r->target; in nxt_http_var_request_uri()
H A Dnxt_http_rewrite.c33 nxt_str_t str, encoded_path, target; in nxt_http_rewrite() local
81 r->target = encoded_path; in nxt_http_rewrite()
84 target.length = encoded_path.length + 1 + r->args->length; in nxt_http_rewrite()
86 target.start = nxt_mp_alloc(r->mem_pool, target.length); in nxt_http_rewrite()
87 if (target.start == NULL) { in nxt_http_rewrite()
91 p = nxt_cpymem(target.start, encoded_path.start, encoded_path.length); in nxt_http_rewrite()
95 r->target = target; in nxt_http_rewrite()
107 nxt_log(task, NXT_LOG_NOTICE, "URI rewritten to \"%V\"", &r->target); in nxt_http_rewrite()
H A Dnxt_unit.c1360 (char *) nxt_unit_sptr_get(&r->target), in nxt_unit_process_req_headers()
H A Dnxt_router.c1609 nxt_str_t name, target; in nxt_router_conf_create() local
2633 nxt_int_t target; member
2639 nxt_str_t *target, nxt_http_action_t *action) in nxt_router_application_init() argument
2661 if (target != NULL && target->length != 0) { in nxt_router_application_init()
2666 conf->target = i; in nxt_router_application_init()
2669 conf->target = 0; in nxt_router_application_init()
5152 r->app_target = conf->target; in nxt_router_process_http_request()
5411 + r->target.length + 1 in nxt_router_prepare_msg()
5487 nxt_unit_sptr_set(&req->target, p); in nxt_router_prepare_msg()
5488 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_http.h148 nxt_str_t target; member
H A Dnxt_h1proto.c654 r->target.start = h1p->parser.target_start; in nxt_h1p_header_process()
655 r->target.length = h1p->parser.target_end - h1p->parser.target_start; in nxt_h1p_header_process()
2275 size = r->method->length + sizeof(" ") + r->target.length in nxt_h1p_peer_header_send()
2299 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_h1p_peer_header_send()
H A Dnxt_router.h247 nxt_str_t *target, nxt_http_action_t *action);
H A Dnxt_unit_request.h45 nxt_unit_sptr_t target; member
/unit/src/python/
H A Dnxt_python_wsgi.c315 nxt_python_target_t *target; in nxt_python_request_handler() local
338 target = &nxt_py_targets->target[req->request->app_target]; in nxt_python_request_handler()
340 environ = nxt_python_get_environ(pctx, target); in nxt_python_request_handler()
361 response = PyObject_CallObject(target->application, args); in nxt_python_request_handler()
615 RC(nxt_python_add_sptr(pctx, nxt_py_request_uri_str, &r->target, in nxt_python_get_environ()
H A Dnxt_python_asgi_lifespan.c34 nxt_py_asgi_ctx_data_t *ctx_data, nxt_python_target_t *target);
104 nxt_python_target_t *target; in nxt_py_asgi_lifespan_startup() local
117 target = &nxt_py_targets->target[i]; in nxt_py_asgi_lifespan_startup()
119 lifespan = nxt_py_asgi_lifespan_target_startup(ctx_data, target); in nxt_py_asgi_lifespan_startup()
135 nxt_python_target_t *target) in nxt_py_asgi_lifespan_target_startup() argument
214 if (!target->asgi_legacy) { in nxt_py_asgi_lifespan_target_startup()
217 res = PyObject_CallFunctionObjArgs(target->application, in nxt_py_asgi_lifespan_target_startup()
223 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_lifespan_target_startup()
H A Dnxt_python_asgi.c172 func = nxt_python_asgi_get_func(nxt_py_targets->target[i].application); in nxt_python_asgi_init()
185 nxt_py_targets->target[i].asgi_legacy = 1; in nxt_python_asgi_init()
455 nxt_python_target_t *target; in nxt_py_asgi_request_handler() local
498 target = &nxt_py_targets->target[req->request->app_target]; in nxt_py_asgi_request_handler()
517 scope = nxt_py_asgi_create_http_scope(req, target); in nxt_py_asgi_request_handler()
532 if (!target->asgi_legacy) { in nxt_py_asgi_request_handler()
535 res = PyObject_CallFunctionObjArgs(target->application, in nxt_py_asgi_request_handler()
642 char *p, *target, *query; in nxt_py_asgi_create_http_scope() local
716 target = nxt_unit_sptr_get(&r->target); in nxt_py_asgi_create_http_scope()
720 target_length = query - target - 1; in nxt_py_asgi_create_http_scope()
[all …]
H A Dnxt_python.c32 nxt_python_target_t *target, nxt_conf_value_t *conf);
34 nxt_python_target_t *target, nxt_conf_value_t *value);
463 target->application = obj; in nxt_python_set_target()
466 Py_INCREF(target->application); in nxt_python_set_target()
500 target->prefix.length = str.length; in nxt_python_set_prefix()
516 target->prefix.start = prefix; in nxt_python_set_prefix()
800 nxt_python_target_t *target; in nxt_python_atexit() local
810 target = &nxt_py_targets->target[i]; in nxt_python_atexit()
812 Py_XDECREF(target->application); in nxt_python_atexit()
813 Py_XDECREF(target->py_prefix); in nxt_python_atexit()
[all …]
H A Dnxt_python.h51 nxt_python_target_t target[0]; member
/unit/pkg/docker/
H A DDockerfile.wasm68 …&& install -pm 755 pkg/contrib/wasmtime/target/release/libwasmtime.so /usr/lib/$(dpkg-architecture…
H A DMakefile104 \ \ \ \&\& install -pm 755 pkg/contrib/wasmtime/target/release/libwasmtime.so /usr/lib/\$$\(dpkg-ar…
/unit/docs/
H A Dunit-openapi.yaml4740 pass: "applications/php_app/target"
4769 pass: "applications/php_app/target"
4833 summary: "App target destination in a listener"
5654 description: "Base directory of the target’s
5667 serves all requests to the target."
5729 runs as the target."
5864 description: "Request target."
/unit/tools/
H A DREADME.md29 * **URI** specifies the target in Unit's control API, e.g. `/config` .
/unit/pkg/rpm/
H A DMakefile.wasm9 …\`/pkg/contrib/wasmtime/crates/c-api/include --lib-path=\`pwd\`/pkg/contrib/wasmtime/target/release
29 %{__install} -m 755 -p pkg/contrib/wasmtime/target/release/libwasmtime.so %{buildroot}%{_libdir}/
/unit/pkg/deb/
H A DMakefile.wasm9 …kg/contrib/wasmtime/crates/c-api/include --lib-path=\$$(CURDIR)/pkg/contrib/wasmtime/target/release
32 …install -m 755 -p pkg/contrib/wasmtime/target/release/libwasmtime.so debian/unit-wasm/usr/lib/\$$(…
/unit/test/
H A Dconftest.py572 def run_process(target, *args): argument
575 process = Process(target=target, args=args)
/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_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()
/unit/src/perl/
H A Dnxt_perl_psgi.c628 &r->target, r->target_length)); in nxt_perl_psgi_env_create()
/unit/pkg/contrib/
H A DMakefile129 $(error Download and check target not defined for $*)

12