Home
last modified time | relevance | path

Searched refs:f (Results 51 – 75 of 151) sorted by relevance

1234567

/unit/test/
H A Dtest_java_application.py29 "webapp": f"{temp_dir}/java",
41 f'"{temp_dir}/java/empty.war"',
126 'Cookie': f'JSESSIONID={session_id}',
164 'Cookie': f'JSESSIONID={session_id}',
178 'Cookie': f'JSESSIONID={session_id}',
190 'Cookie': f'JSESSIONID={session_id}',
215 'Cookie': f'JSESSIONID={session_id}',
232 'Cookie': f'JSESSIONID={session_id}',
252 'Cookie': f'JSESSIONID={session_id}',
264 'Cookie': f'JSESSIONID={session_id}',
[all …]
H A Dtest_unix_abstract.py16 assert 'success' in client.conf(f'"{source}"', 'routes/0/match/source')
22 f"unix:@{addr[1:]}": {"pass": "routes"},
60 client_ip_dir = f"{option.test_dir}/python/client_ip"
H A Dtest_configuration.py306 "listeners": {"*:8080": {"pass": f"applications/{name}"}},
325 f"app-{a}": {
334 f"*:{(7000 + a)}": {"pass": f"applications/app-{a}"}
435 f"app-{a}": {
H A Dtest_variables.py28 'path': f'{option.temp_dir}/access.log',
40 f'"{location}"',
130 Path(f'{temp_dir}/foo/bar').mkdir(parents=True)
131 Path(f'{temp_dir}/foo/bar/index.html').write_text('index', encoding='utf-8')
140 "share": f'{temp_dir}$uri',
445 Path(f'{temp_dir}/foo').mkdir()
446 Path(f'{temp_dir}/foo/index.html').write_text('index', encoding='utf-8')
454 "share": f'{temp_dir}$uri',
520 'path': f'{temp_dir}/access.log',
H A Dtest_routing.py323 python_dir = f'{option.test_dir}/python'
333 "path": f'{python_dir}/empty',
356 "path": f'{python_dir}/empty',
1181 chars_enc += f'%{h1}{h2}'
1188 check_args({chars: chars}, f'{chars}={chars}')
1588 route_match({"source": f'127.0.0.1:{port}'})
1595 route_match({"source": f'!127.0.0.1:{port}'})
1639 f'127.0.0.1:{socks[0][1]}',
1640 f'127.0.0.1:{socks[2][1]}',
1828 addr = f'{temp_dir}/sock'
[all …]
H A Dtest_tls_conf_command.py57 "conf_commands": {"protocol": f'-{protocol}'},
84 "protocol": f'-{protocol}',
85 "cipherstring": f"{cipher[1]}:!{cipher[0]}",
H A Dtest_tls_tickets.py78 f'listeners/*:{port}/tls/session',
177 f'"{TICKET}"', 'listeners/*:8080/tls/session/tickets'
196 check_tickets(f'{TICKET[:-2]}!{TICKET[3:]}')
198 check_tickets(f'{TICKET}b')
199 check_tickets(f'{TICKET}blah')
H A Dtest_respawn.py19 client.app_name = f'app-{temp_dir.split("/")[-1]}'
24 '1', f'applications/{client.app_name}/processes'
56 r = client.conf('1', f'applications/{client.app_name}/processes')
H A Dtest_upstreams_rr.py261 delayed_dir = f'{option.test_dir}/python/delayed'
408 addr_0 = f'{temp_dir}/sock_0'
409 addr_1 = f'{temp_dir}/sock_1'
414 f"unix:{addr_0}": {"pass": "routes/one"},
415 f"unix:{addr_1}": {"pass": "routes/two"},
421 {f"unix:{addr_0}": {}, f"unix:{addr_1}": {}},
H A Dtest_njs_modules.py13 with open(f'{option.test_dir}/njs/{module}/script.js', 'rb') as script:
14 assert expect in client.conf(script.read(), f'/js_modules/{name}')
/unit/test/python/body_io_file/
H A Dwsgi.py3 f = open('file', 'rb')
4 return f
/unit/test/python/body_io/
H A Dwsgi.py6 f = io.BytesIO(b'0123456789')
7 return f
/unit/test/unit/check/
H A Dcheck_prerequisites.py34 f'Unit has no {", ".join(missed)} module(s)',
55 missed.append(f'{feature}/{key}')
62 f'{", ".join(missed)} feature(s) not supported',
H A Dunix_abstract.py15 addr=f'{option.temp_dir}/control.unit.sock',
19 f'unix:@{option.temp_dir}/sock': {"pass": "routes"}
/unit/test/python/targets/
H A Dwsgi.py12 data = f"{env.get('SCRIPT_NAME', 'No Script Name')} {env['PATH_INFO']}"
13 start_response('200', [('Content-Length', f'{data}')])
/unit/src/
H A Dnxt_port_memory_int.h170 nxt_free_map_t *f; in nxt_port_mmap_chk_set_chunk_busy() local
173 f = m + FREE_IDX(c); in nxt_port_mmap_chk_set_chunk_busy()
175 while ( (*f & FREE_MASK(c)) != 0 ) { in nxt_port_mmap_chk_set_chunk_busy()
177 free_val = *f | FREE_MASK(c); in nxt_port_mmap_chk_set_chunk_busy()
180 if (nxt_atomic_cmp_set(f, free_val, busy_val) != 0) { in nxt_port_mmap_chk_set_chunk_busy()
H A Dnxt_http_js.c197 nxt_http_field_t *f; in nxt_http_js_ext_get_header() local
212 nxt_list_each(f, r->fields) { in nxt_http_js_ext_get_header()
214 if (key.length == f->name_length in nxt_http_js_ext_get_header()
215 && memcmp(key.start, f->name, f->name_length) == 0) in nxt_http_js_ext_get_header()
217 return njs_vm_value_string_set(vm, retval, f->value, in nxt_http_js_ext_get_header()
218 f->value_length); in nxt_http_js_ext_get_header()
233 nxt_http_field_t *f; in nxt_http_js_ext_keys_header() local
246 nxt_list_each(f, r->fields) { in nxt_http_js_ext_keys_header()
253 rc = njs_vm_value_string_set(vm, value, f->name, f->name_length); in nxt_http_js_ext_keys_header()
H A Dnxt_http_request.c373 nxt_list_each(f, r->fields) { in nxt_http_request_forward()
376 && f->value_length > 0 in nxt_http_request_forward()
386 *fields = f; in nxt_http_request_forward()
392 && f->value_length > 0 in nxt_http_request_forward()
397 protocol_field = f; in nxt_http_request_forward()
420 nxt_http_field_t **f; in nxt_http_request_forward_client_ip() local
428 start = f[i]->value; in nxt_http_request_forward_client_ip()
429 len = f[i]->value_length; in nxt_http_request_forward_client_ip()
1071 nxt_http_field_t *f; in nxt_http_cookies_parse() local
1082 nxt_list_each(f, r->fields) { in nxt_http_cookies_parse()
[all …]
H A Dnxt_fiber.h16 #define nxt_fiber_id(f) (f)->fid; argument
H A Dnxt_http_variables.c653 nxt_http_field_t *f; in nxt_http_var_header() local
659 nxt_list_each(f, r->fields) { in nxt_http_var_header()
661 if (vf->hash == f->hash in nxt_http_var_header()
663 && nxt_strncasecmp(vf->name.start, f->name, f->name_length) == 0) in nxt_http_var_header()
665 str->start = f->value; in nxt_http_var_header()
666 str->length = f->value_length; in nxt_http_var_header()
754 nxt_http_field_t *f; in nxt_http_var_response_header() local
760 nxt_list_each(f, r->resp.fields) { in nxt_http_var_response_header()
762 if (f->skip) { in nxt_http_var_response_header()
767 str->start = f->value; in nxt_http_var_response_header()
[all …]
/unit/auto/
H A Dcgroup6 if [ -f "/proc/mounts" ]; then
7 CGROUP=$(grep cgroup2 /proc/mounts | head -n 1 | cut -d " " -f 2)
H A Dclang150 void *f(void) __attribute__ ((__malloc__));
152 void *f(void) {
157 if (f() != NULL) {
186 nxt_feature_test="static void f(void) __attribute__ ((__unused__));
188 static void f(void)
/unit/auto/modules/
H A Djava_chk_sha51238 if [ -f "$NXT_JAR_CHK_FILE" ]; then
45 rm -f $NXT_JAR_CHK_FILE
48 rm -f $NXT_JAR_CHK
/unit/src/test/
H A Dnxt_unit_app_test.c151 nxt_unit_field_t *f; in greeting_app_request_handler() local
248 f = r->fields + i; in greeting_app_request_handler()
251 p = copy(p, nxt_unit_sptr_get(&f->name), f->name_length); in greeting_app_request_handler()
253 p = copy(p, nxt_unit_sptr_get(&f->value), f->value_length); in greeting_app_request_handler()
/unit/src/nodejs/unit-http/
H A Dunit.cpp634 name = (char *) nxt_unit_sptr_get(&f->name); in append_header()
638 for (i = 0; i < f->name_length; i++) { in append_header()
642 vstr = set_named_property(headers, name, f->value, f->value_length); in append_header()
801 nxt_unit_field_t *f; in response_send_headers() local
874 f->skip = 0; in response_send_headers()
878 f->name_length = name_len; in response_send_headers()
879 f->hash = hash; in response_send_headers()
900 f->skip = 0; in response_send_headers()
904 f->name_length = name_len; in response_send_headers()
905 f->hash = hash; in response_send_headers()
[all …]

1234567