Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 31) sorted by path

12

/unit/go/
H A Drequest.go44 uri := GoStringN(&req.target, C.int(req.target_length))
/unit/pkg/deb/debian/
H A Dunit-debug.service3 Wants=network-online.target
4 After=network-online.target
14 WantedBy=multi-user.target
H A Dunit.service3 Wants=network-online.target
4 After=network-online.target
14 WantedBy=multi-user.target
/unit/pkg/rpm/rpmbuild/SOURCES/
H A Dunit-debug.service14 Wants=network-online.target
15 After=network-online.target
26 WantedBy=multi-user.target
H A Dunit.service14 Wants=network-online.target
15 After=network-online.target
26 WantedBy=multi-user.target
/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/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/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/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/
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()
2265 size = r->method->length + sizeof(" ") + r->target.length in nxt_h1p_peer_header_send()
2289 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_h1p_peer_header_send()
H A Dnxt_http.h147 nxt_str_t target; member
H A Dnxt_http_variables.c167 *str = r->target; in nxt_http_var_request_uri()
282 length = r->method->length + 1 + r->target.length + 1 + r->version.length; in nxt_http_var_request_line()
294 if (r->target.length != 0) { in nxt_http_var_request_line()
296 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_http_var_request_line()
H A Dnxt_php_sapi.c553 target->root.length = nxt_strlen(p); in nxt_php_set_target()
554 target->root.start = p; in nxt_php_set_target()
572 p = nxt_cpymem(p, target->root.start, target->root.length); in nxt_php_set_target()
587 target->script_filename.start = p; in nxt_php_set_target()
590 target->root.start, target->root.length)) in nxt_php_set_target()
602 target->script_name.length = target->script_filename.length in nxt_php_set_target()
604 target->script_name.start = target->script_filename.start in nxt_php_set_target()
621 target->index.start = tmp; in nxt_php_set_target()
986 nxt_php_target_t *target; in nxt_php_request_handler() local
996 ctx.root = &target->root; in nxt_php_request_handler()
[all …]
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_router.c1546 nxt_str_t name, target; in nxt_router_conf_create() local
2466 nxt_int_t target; member
2472 nxt_str_t *target, nxt_http_action_t *action) in nxt_router_application_init() argument
2494 if (target != NULL && target->length != 0) { in nxt_router_application_init()
2499 conf->target = i; in nxt_router_application_init()
2502 conf->target = 0; in nxt_router_application_init()
4948 r->app_target = conf->target; in nxt_router_process_http_request()
5206 + r->target.length + 1 in nxt_router_prepare_msg()
5282 nxt_unit_sptr_set(&req->target, p); in nxt_router_prepare_msg()
5283 p = nxt_cpymem(p, r->target.start, r->target.length); in nxt_router_prepare_msg()
[all …]
H A Dnxt_router.h239 nxt_str_t *target, nxt_http_action_t *action);
H A Dnxt_unit.c1360 (char *) nxt_unit_sptr_get(&r->target), in nxt_unit_process_req_headers()
H A Dnxt_unit_request.h45 nxt_unit_sptr_t target; member
/unit/src/perl/
H A Dnxt_perl_psgi.c627 &r->target, r->target_length)); in nxt_perl_psgi_env_create()
/unit/src/python/
H A Dnxt_python.c32 nxt_python_target_t *target, nxt_conf_value_t *conf);
284 ret = nxt_python_set_target(task, &targets->target[i], cv); in nxt_python_start()
291 ret = nxt_python_set_target(task, &targets->target[0], app_conf->self); in nxt_python_start()
305 proto = nxt_python_asgi_check(targets->target[0].application) in nxt_python_start()
309 probe_proto = nxt_python_asgi_check(targets->target[i].application) in nxt_python_start()
382 nxt_python_set_target(nxt_task_t *task, nxt_python_target_t *target, in nxt_python_set_target() argument
439 target->application = obj; in nxt_python_set_target()
442 Py_INCREF(target->application); in nxt_python_set_target()
743 Py_XDECREF(nxt_py_targets->target[i].application); in nxt_python_atexit()
H A Dnxt_python.h49 nxt_python_target_t target[0]; member
H A Dnxt_python_asgi.c169 func = nxt_python_asgi_get_func(nxt_py_targets->target[i].application); in nxt_python_asgi_init()
182 nxt_py_targets->target[i].asgi_legacy = 1; in nxt_python_asgi_init()
417 nxt_python_target_t *target; in nxt_py_asgi_request_handler() local
466 target = &nxt_py_targets->target[req->request->app_target]; in nxt_py_asgi_request_handler()
468 if (!target->asgi_legacy) { in nxt_py_asgi_request_handler()
471 res = PyObject_CallFunctionObjArgs(target->application, in nxt_py_asgi_request_handler()
477 res = PyObject_CallFunctionObjArgs(target->application, scope, NULL); in nxt_py_asgi_request_handler()
578 char *p, *target, *query; in nxt_py_asgi_create_http_scope() local
640 target = nxt_unit_sptr_get(&r->target); in nxt_py_asgi_create_http_scope()
644 target_length = query - target - 1; in nxt_py_asgi_create_http_scope()
[all …]
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_wsgi.c355 application = nxt_py_targets->target[req->request->app_target].application; in nxt_python_request_handler()
607 RC(nxt_python_add_sptr(pctx, nxt_py_request_uri_str, &r->target, in nxt_python_get_environ()

12