/unit/test/ |
H A D | test_node_es_modules.py | 21 client.load('loader/es_modules_http', name="app.mjs") 27 client.load('loader/es_modules_http_indirect', name="app.js") 33 client.load('loader/es_modules_websocket', name="app.mjs")
|
H A D | test_configuration.py | 302 name = "X" * 1024 * 1024 308 name: {
|
H A D | test_asgi_lifespan.py | 17 for name in ['startup', 'shutdown']: 22 assert not exists, name 35 for name in ['startup', 'shutdown', 'version']:
|
H A D | conftest.py | 435 if item.name not in [ 529 for name in ['controller', 'router']: 530 ps = _fds_info[name] 601 def pid_by_name(name): argument 607 def find_proc(name, ps_output): argument 660 def _search_in_file(pattern, name='unit.log', flags=re.M): argument 661 return re.search(pattern, Log.read(name), flags)
|
H A D | test_status.py | 21 def app_default(name="empty", module="wsgi"): argument 154 def check_application(name, running, starting, idle, active): argument
|
H A D | test_njs_modules.py | 9 def njs_script_load(module, name=None, expect='success'): argument 10 if name is None: 11 name = module
|
/unit/ |
H A D | CONTRIBUTING.md | 85 remedies a GitHub issue, [name
|
/unit/src/ruby/ |
H A D | nxt_ruby.c | 35 static VALUE nxt_ruby_hook_call(VALUE name); 58 nxt_inline void nxt_ruby_add_sptr(VALUE hash_env, VALUE name, 246 nxt_ruby_hook_call(VALUE name) in nxt_ruby_hook_call() argument 250 proc = rb_hash_lookup(nxt_ruby_hook_procs, name); in nxt_ruby_hook_call() 737 VALUE name; in nxt_ruby_read_request() local 768 name = rb_str_new(nxt_unit_sptr_get(&f->name), f->name_length); in nxt_ruby_read_request() 770 nxt_ruby_add_sptr(hash_env, name, &f->value, f->value_length); in nxt_ruby_read_request() 792 nxt_ruby_add_sptr(VALUE hash_env, VALUE name, in nxt_ruby_add_sptr() argument 799 rb_hash_aset(hash_env, name, rb_str_new(str, len)); in nxt_ruby_add_sptr()
|
/unit/src/ |
H A D | nxt_php_sapi.c | 260 ag->armed = ag->auto_global_callback(ag->name); in PHP_FUNCTION() 459 nxt_str_t name; in nxt_php_start() local 681 nxt_str_t name, value; in nxt_php_set_options() local 701 if (nxt_str_eq(&name, "disable_functions", 17)) { in nxt_php_set_options() 712 if (nxt_str_eq(&name, "disable_classes", 15)) { in nxt_php_set_options() 1419 const char *name; local 1511 name = nxt_unit_sptr_get(&f->name); 1513 nxt_php_set_sptr(req, name, &f->value, f->value_length, 1551 php_register_variable_safe((char *) name, str, new_len, 1558 nxt_php_set_str(nxt_unit_request_info_t *req, const char *name, argument [all …]
|
H A D | nxt_unit.h | 246 uint16_t nxt_unit_field_hash(const char* name, size_t name_length); 250 char **name, uint32_t *name_length, char **port, uint32_t *port_length); 269 const char* name, uint8_t name_length,
|
H A D | nxt_controller.c | 163 .name = "controller", 250 file.name = (nxt_file_name_t *) name; in nxt_controller_file_read() 1703 name.length = path->length - 1; in nxt_controller_process_cert() 1704 name.start = path->start + 1; in nxt_controller_process_cert() 1706 p = memchr(name.start, '/', name.length); in nxt_controller_process_cert() 1709 name.length = p - name.start; in nxt_controller_process_cert() 1724 if (name.length != 0) { in nxt_controller_process_cert() 1965 name.start = path->start + 1; in nxt_controller_process_script() 1967 p = memchr(name.start, '/', name.length); in nxt_controller_process_script() 1970 name.length = p - name.start; in nxt_controller_process_script() [all …]
|
H A D | nxt_unit.c | 1930 end = name + name_length; in nxt_unit_field_hash() 1932 for (p = name; p < end; p++) { in nxt_unit_field_hash() 1946 char *name; in nxt_unit_request_group_dup_fields() local 1961 name = nxt_unit_sptr_get(&fields[i].name); in nxt_unit_request_group_dup_fields() 2018 nxt_unit_sptr_set(&fields[j].name, name); in nxt_unit_request_group_dup_fields() 2172 nxt_unit_sptr_set(&f->name, p); in nxt_unit_response_realloc() 2239 const char *name, uint8_t name_length, in nxt_unit_response_add_field() argument 2282 nxt_unit_sptr_set(&f->name, buf->free); in nxt_unit_response_add_field() 3832 char name[64]; in nxt_unit_shm_open() local 3836 snprintf(name, sizeof(name), NXT_SHM_PREFIX "unit.%d.%p", in nxt_unit_shm_open() [all …]
|
H A D | nxt_http_route.c | 103 } name; member 272 string = nxt_str_dup(mp, &route->name, &name); in nxt_http_routes_create() 777 nxt_str_null(&name); in nxt_http_route_ruleset_create() 816 rule->u.name.hash = hash; in nxt_http_route_rule_name_create() 817 rule->u.name.start = name->start; in nxt_http_route_rule_name_create() 818 rule->u.name.length = name->length; in nxt_http_route_rule_name_create() 1497 if (nxt_strstr_eq(&(*route)->name, name)) { in nxt_http_route_find() 1548 nxt_str_t *name) in nxt_http_pass_application() argument 1930 || nxt_strncasecmp(rule->u.name.start, f->name, f->name_length) in nxt_http_route_header() 1981 && memcmp(rule->u.name.start, nv->name, nv->name_length) == 0) in nxt_http_route_test_argument() [all …]
|
H A D | nxt_http_set_headers.c | 12 nxt_str_t name; member 22 nxt_str_t str, name; in nxt_http_set_headers_init() local 38 value = nxt_conf_next_object_member(acf->set_headers, &name, &next); in nxt_http_set_headers_init() 48 hv->name.length = name.length; in nxt_http_set_headers_init() 50 hv->name.start = nxt_mp_nget(rtcf->mem_pool, name.length); in nxt_http_set_headers_init() 51 if (nxt_slow_path(hv->name.start == NULL)) { in nxt_http_set_headers_init() 55 nxt_memcpy(hv->name.start, name.start, name.length); in nxt_http_set_headers_init() 83 && nxt_memcasecmp(name, f->name, f->name_length) == 0) in nxt_http_resp_header_find() 153 f = nxt_http_resp_header_find(r, hv->name.start, hv->name.length); in nxt_http_set_headers() 163 f->name = hv->name.start; in nxt_http_set_headers() [all …]
|
/unit/src/python/ |
H A D | nxt_python_wsgi.c | 81 PyObject *name, PyObject *value, int i); 667 || nxt_unit_sptr_get(&f2->name) != nxt_unit_sptr_get(&f->name)) in nxt_python_get_environ() 757 PyUnicode_AsUTF8(name)); in nxt_python_add_py_string() 771 PyObject *name, *value; in nxt_python_add_field() local 773 src = nxt_unit_sptr_get(&field->name); in nxt_python_add_field() 776 if (nxt_slow_path(name == NULL)) { in nxt_python_add_field() 800 PyUnicode_AsUTF8(name)); in nxt_python_add_field() 804 Py_DECREF(name); in nxt_python_add_field() 811 Py_DECREF(name); in nxt_python_add_field() 840 c = name[i]; in nxt_python_field_name() [all …]
|
/unit/test/unit/applications/lang/ |
H A D | ruby.py | 20 def load(self, script, name='config.ru', **kwargs): argument
|
H A D | node.py | 28 def load(self, script, name='app.js', **kwargs): argument 38 name, 42 arguments = ["node", "--require", "unit-http/loader", name]
|
H A D | perl.py | 9 def load(self, script, name='psgi.pl', **kwargs): argument
|
/unit/src/wasm/ |
H A D | nxt_rt_wasmtime.c | 121 const char *name = ctx->fh[hook].func_name; in nxt_wasmtime_execute_hook() local 127 if (name == NULL) { in nxt_wasmtime_execute_hook() 134 name); in nxt_wasmtime_execute_hook()
|
H A D | nxt_wasm.c | 59 const char *name; in nxt_wasm_do_send_headers() local 62 name = (const char *)rh + rh->fields[i].name_off; in nxt_wasm_do_send_headers() 65 nxt_unit_response_add_field(ctx->req, name, rh->fields[i].name_len, in nxt_wasm_do_send_headers() 130 const char *name = nxt_unit_sptr_get(&sf->name); in nxt_wasm_request_handler() local 134 df->name_len = strlen(name); in nxt_wasm_request_handler() 135 memcpy((uint8_t *)wr + offset, name, df->name_len + 1); in nxt_wasm_request_handler()
|
/unit/src/java/ |
H A D | nxt_jni_Response.c | 41 jlong req_info_ptr, jarray name); 47 jlong req_info_ptr, jarray name); 68 jlong req_info_ptr, jarray name); 71 const char *name, jint name_len); 262 jarray name, jarray value) in nxt_java_Response_addHeader() argument 362 jarray name, jint value) in nxt_java_Response_addIntHeader() argument 404 nxt_unit_sptr_set(&f->name, p); in nxt_java_add_int_header() 405 memcpy(p, name, name_len); in nxt_java_add_int_header() 462 jarray name) in nxt_java_Response_getHeader() argument 528 jlong req_info_ptr, jarray name) in nxt_java_Response_getHeaders() argument [all …]
|
/unit/pkg/rpm/ |
H A D | unit.spec.in | 2 %define bdir %{_builddir}/%{name}-%{version} 42 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 230 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
H A D | unit.module.spec.in | 2 %define bdir %{_builddir}/%{name}-%{version} 38 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 58 %setup -qcTn %{name}-%{unit_version} 82 if [ `basename %{SOURCE100}` == COPYRIGHT.%{name} ]; then
|
/unit/pkg/deb/debian/ |
H A D | rules.in | 116 dh_installsystemd -punit --name=unit unit.service 117 dh_installsystemd -punit --name=unit-debug --no-start --no-enable unit-debug.service
|
/unit/auto/modules/ |
H A D | wasm | 28 --module=NAME set Unit WASM module name (default: wasm)
|