Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 154) sorted by last modified time

1234567

/unit/test/
H A Dconftest.py684 process.start()
/unit/src/
H A Dnxt_var.c129 p = name->start; in nxt_var_decl_get()
142 str.start = name->start; in nxt_var_decl_get()
148 str.start = p; in nxt_var_decl_get()
343 p = str->start; in nxt_var_compile()
373 p = str->start; in nxt_var_compile()
405 p = str->start; in nxt_var_test()
443 p = memchr(start, '$', end - start); in nxt_var_next_part()
445 if (p == start) { in nxt_var_next_part()
466 start = p; in nxt_var_next_part()
492 part->start = start; in nxt_var_next_part()
[all …]
H A Dnxt_tstr.c100 tstr->str.start = nxt_mp_nget(state->pool, tstr->str.length); in nxt_tstr_compile()
101 if (nxt_slow_path(tstr->str.start == NULL)) { in nxt_tstr_compile()
105 p = nxt_cpymem(tstr->str.start, str->start, str->length); in nxt_tstr_compile()
131 p = memchr(str->start, '$', str->length); in nxt_tstr_compile()
168 p = memchr(str->start, '$', str->length); in nxt_tstr_test()
H A Dnxt_runtime.h25 nxt_runtime_cont_t start; member
H A Dnxt_router_access_log.c111 access_log->path.start = (u_char *) access_log in nxt_router_access_log_create()
114 nxt_memcpy(access_log->path.start, alcf.path.start, alcf.path.length); in nxt_router_access_log_create()
119 str.start = nxt_malloc(str.length); in nxt_router_access_log_create()
120 if (str.start == NULL) { in nxt_router_access_log_create()
125 p = nxt_cpymem(str.start, alcf.format.start, alcf.format.length); in nxt_router_access_log_create()
186 nxt_fd_write(ctx->access_log->fd, ctx->text.start, ctx->text.length); in nxt_router_access_log_write_ready()
H A Dnxt_tstr.h65 p = memchr(str->start, '`', str->length); in nxt_is_tstr()
70 p = memchr(str->start, '$', str->length); in nxt_is_tstr()
H A Dnxt_router.c290 .start = nxt_router_start,
847 app_name.start = msg->buf->mem.pos; in nxt_router_app_restart_handler()
1539 u_char *start, u_char *end) in nxt_router_conf_create() argument
1776 nxt_memcpy(app->name.start, name.start, name.length); in nxt_router_conf_create()
1951 t->length = nxt_strlen(t->start); in nxt_router_conf_create()
2276 c = fh->header->start[i]; in nxt_router_conf_forward_header()
3318 link->start = nxt_router_thread_start; in nxt_router_thread_create()
5207 + (r->path->start != r->target.start ? r->path->length + 1 : 0); in nxt_router_prepare_msg()
5287 if (r->path->start == r->target.start) { in nxt_router_prepare_msg()
5297 if (r->args->start != NULL) { in nxt_router_prepare_msg()
[all …]
H A Dnxt_http_static.c333 if (shr->start[shr->length - 1] == '/') { in nxt_http_static_send_ready()
344 p = nxt_cpymem(p, shr->start, shr->length); in nxt_http_static_send_ready()
368 fname = ctx->share.start; in nxt_http_static_send_ready()
394 file.name = chr->start; in nxt_http_static_send_ready()
553 if (exten.start == NULL) { in nxt_http_static_send_ready()
569 field->value = mtype->start; in nxt_http_static_send_ready()
763 end = path->start + path->length; in nxt_http_static_extract_extension()
766 while (p > path->start) { in nxt_http_static_extract_extension()
782 exten->start = p; in nxt_http_static_extract_extension()
897 b->mem.pos = b->mem.start; in nxt_http_static_buf_completion()
[all …]
H A Dnxt_js.c68 u_char *p, *start; in nxt_js_add_tpl() local
92 p = start; in nxt_js_add_tpl()
115 func->start = start; in nxt_js_add_tpl()
116 func->length = p - start; in nxt_js_add_tpl()
128 u_char *p, *start; in nxt_js_compile() local
145 p = start; in nxt_js_compile()
172 u_char *start; in nxt_js_test() local
182 nxt_memcpy(start, str->start, str->length); in nxt_js_test()
184 ret = njs_vm_compile(jcf->vm, &start, start + str->length); in nxt_js_test()
189 err.start = res.start; in nxt_js_test()
[all …]
H A Dnxt_http_variables.c137 p = nxt_sprintf(str->start, str->start + NXT_TIME_T_LEN, "%T.%03M", in nxt_http_var_request_time()
140 str->length = p - str->start; in nxt_http_var_request_time()
239 - str->start; in nxt_http_var_time_local()
289 p = start; in nxt_http_var_request_line()
308 str->start = start; in nxt_http_var_request_line()
309 str->length = p - start; in nxt_http_var_request_line()
331 str->length = nxt_sprintf(str->start, str->start + NXT_OFF_T_LEN, "%O", in nxt_http_var_body_bytes_sent()
350 str->length = nxt_sprintf(str->start, str->start + 3, "%03d", r->status) in nxt_http_var_status()
351 - str->start; in nxt_http_var_status()
417 start = args->elts; in nxt_http_var_arg()
[all …]
H A Dnxt_http_return.c156 if (nxt_is_complex_uri_encoded(location->start, location->length)) { in nxt_http_return_encode()
162 encode = nxt_encode_complex_uri(NULL, location->start, location->length); in nxt_http_return_encode()
165 encoded->start = nxt_mp_nget(mp, encoded->length); in nxt_http_return_encode()
166 if (nxt_slow_path(encoded->start == NULL)) { in nxt_http_return_encode()
170 nxt_encode_complex_uri(encoded->start, location->start, location->length); in nxt_http_return_encode()
203 field->value = ctx->encoded.start; in nxt_http_return_send_ready()
H A Dnxt_http_route.c793 rule->u.name.start = name->start; in nxt_http_route_rule_name_create()
1017 tmp.start = test.start; in nxt_http_route_pattern_create()
1077 tmp.start = test.start; in nxt_http_route_pattern_create()
1133 start = str->start; in nxt_http_route_decode_str()
1135 end = nxt_decode_uri(start, start, str->length); in nxt_http_route_decode_str()
1144 start = str->start; in nxt_http_route_decode_str()
1185 nxt_memcpy_upcase(start, test->start, test->length); in nxt_http_route_pattern_slice()
1193 nxt_memcpy(start, test->start, test->length); in nxt_http_route_pattern_slice()
1203 slice->start = start; in nxt_http_route_pattern_slice()
1431 segments->start = rest.start; in nxt_http_pass_segments()
[all …]
H A Dnxt_http_js.c154 nxt_http_name_value_t *nv, *start, *end; in nxt_http_js_ext_get_arg() local
173 start = args->elts; in nxt_http_js_ext_get_arg()
174 end = start + args->nelts; in nxt_http_js_ext_get_arg()
176 for (nv = start; nv < end; nv++) { in nxt_http_js_ext_get_arg()
179 && memcmp(key.start, nv->name, nv->name_length) == 0) in nxt_http_js_ext_get_arg()
216 && memcmp(key.start, f->name, f->name_length) == 0) in nxt_http_js_ext_get_header()
238 nxt_http_name_value_t *nv, *start, *end; in nxt_http_js_ext_get_cookie() local
257 start = cookies->elts; in nxt_http_js_ext_get_cookie()
258 end = start + cookies->nelts; in nxt_http_js_ext_get_cookie()
260 for (nv = start; nv < end; nv++) { in nxt_http_js_ext_get_cookie()
[all …]
H A Dnxt_http_request.c122 h = host->start; in nxt_http_validate_host()
430 for (p = start + len - 1; p > start; p--, len--) { in nxt_http_request_forward_client_ip()
478 addr.start = start; in nxt_http_request_client_ip_sockaddr()
884 start = r->args->start; in nxt_http_arguments_parse()
977 name = start; in nxt_http_argument()
984 nv->value = start; in nxt_http_argument()
1043 while (start[0] == ' ') { start++; } in nxt_http_cookie_parse()
1102 nv->value = start; in nxt_http_cookie()
1125 p = str.start; in nxt_http_field_hash()
1143 start = name->start; in nxt_http_field_hash()
[all …]
H A Dnxt_http.h366 nxt_http_route_rule_t *rule, u_char *start, size_t length);
H A Dnxt_conf.h103 nxt_conf_value_t *nxt_conf_json_parse(nxt_mp_t *mp, u_char *start, u_char *end,
107 nxt_conf_json_parse(mp, (str)->start, (str)->start + (str)->length, NULL)
113 void nxt_conf_json_position(u_char *start, const u_char *pos, nxt_uint_t *line,
H A Dnxt_conf_validation.c1321 expected.start = buf; in nxt_conf_vldt_type()
1357 vldt->error.start = p; in nxt_conf_vldt_error()
1754 name.start += 7; in nxt_conf_vldt_proxy()
1970 first = (pattern.start[0] == '!'); in nxt_conf_vldt_match_pattern()
1974 pattern.start += first + 1; in nxt_conf_vldt_match_pattern()
2000 if (pattern.start[i] == '*' && pattern.start[i + 1] == '*') { in nxt_conf_vldt_match_pattern()
2053 end = nxt_decode_uri(p, name->start, name->length); in nxt_conf_vldt_match_encoded_patterns_set_member()
2741 if (memchr(str.start, '\0', str.length) != NULL) { in nxt_conf_vldt_environment()
2940 if (memchr(str.start, '\0', str.length) != NULL) { in nxt_conf_vldt_argument()
2999 if (memchr(str.start, '\0', str.length) != NULL) { in nxt_conf_vldt_java_classpath()
[all …]
H A Dnxt_main_process.c24 u_char *start; member
356 u_char *start, *p, ch; in nxt_main_start_process_handler() local
416 start = b->mem.pos; in nxt_main_start_process_handler()
418 app_conf->name.start = start; in nxt_main_start_process_handler()
419 app_conf->name.length = nxt_strlen(start); in nxt_main_start_process_handler()
421 init->name = (const char *) start; in nxt_main_start_process_handler()
439 start += app_conf->name.length + 1; in nxt_main_start_process_handler()
462 ch = app_conf->type.start[type_len]; in nxt_main_start_process_handler()
1045 ls.start = message; in nxt_main_port_socket_handler()
1062 size = ls.end - ls.start; in nxt_main_port_socket_handler()
[all …]
H A Dnxt_application.h132 nxt_process_start_t start; member
/unit/src/python/
H A Dnxt_python_wsgi.c472 obj = PyString_FromStringAndSize((char *) nxt_server.start, in nxt_python_create_environ()
H A Dnxt_python.c246 if (probe_proto.start != proto.start) { in nxt_python_start()
338 nxt_memcpy(module_name, str.start, str.length); in nxt_python_set_target()
357 nxt_memcpy(callable, str.start, str.length); in nxt_python_set_target()
428 path = PyString_FromStringAndSize((char *) str.start, str.length); in nxt_python_set_path()
631 while (pstr->string.start != NULL) { in nxt_python_init_strings()
632 obj = PyString_FromStringAndSize((char *) pstr->string.start, in nxt_python_init_strings()
654 while (pstr->string.start != NULL) { in nxt_python_done_strings()
H A Dnxt_python_asgi.c747 addr.start = nxt_unit_sptr_get(sptr); in nxt_py_asgi_create_address()
757 addr.start += prefix_len; in nxt_py_asgi_create_address()
760 v = PyString_FromStringAndSize((const char *) addr.start, addr.length); in nxt_py_asgi_create_address()
869 uint32_t i, n, start; in nxt_py_asgi_create_subprotocols() local
887 start = 0; in nxt_py_asgi_create_subprotocols()
896 if (i - start > 0) { in nxt_py_asgi_create_subprotocols()
897 proto = PyString_FromStringAndSize(v + start, i - start); in nxt_py_asgi_create_subprotocols()
911 start = i; in nxt_py_asgi_create_subprotocols()
914 if (i - start > 0) { in nxt_py_asgi_create_subprotocols()
915 proto = PyString_FromStringAndSize(v + start, i - start); in nxt_py_asgi_create_subprotocols()
/unit/pkg/rpm/
H A DMakefile.python3843 sudo service unit start
/unit/src/test/
H A Dnxt_http_parse_test.c637 buf.start = request->start; in nxt_http_parse_test_run()
638 buf.end = request->start + request->length; in nxt_http_parse_test_run()
640 buf.pos = buf.start; in nxt_http_parse_test_run()
657 nxt_nsec_t start, end; in nxt_http_parse_test_bench() local
666 buf.start = request->start; in nxt_http_parse_test_bench()
670 start = nxt_thread_monotonic_time(thr); in nxt_http_parse_test_bench()
684 buf.pos = buf.start; in nxt_http_parse_test_bench()
723 if (rp->method.start != test->method.start in nxt_http_parse_test_request_line()
734 str.start = rp->target_start; in nxt_http_parse_test_request_line()
736 if (str.start != test->target.start in nxt_http_parse_test_request_line()
[all …]
/unit/src/perl/
H A Dnxt_perl_psgi.c436 p = nxt_cpymem(buf, prefix.start, prefix.length); in nxt_perl_psgi_module_create()
438 nxt_memcpy(p, suffix.start, suffix.length); in nxt_perl_psgi_module_create()
622 (char *) nxt_server.start, nxt_server.length)); in nxt_perl_psgi_env_create()
766 status.start = (u_char *) SvPV(*sv_status, status.length); in nxt_perl_psgi_result_status()
768 space = memchr(status.start, ' ', status.length); in nxt_perl_psgi_result_status()
770 status.length = space - status.start; in nxt_perl_psgi_result_status()
773 return nxt_int_parse(status.start, status.length); in nxt_perl_psgi_result_status()
888 body.start = (u_char *) SvPV(*entry, body.length); in nxt_perl_psgi_result_body()
894 rc = nxt_unit_response_write(req, body.start, body.length); in nxt_perl_psgi_result_body()

1234567