Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 41) sorted by last modified time

12

/unit/src/python/
H A Dnxt_python_wsgi.c88 PyObject *args);
91 PyObject *args);
340 args = PyTuple_New(2); in nxt_python_request_handler()
341 if (nxt_slow_path(args == NULL)) { in nxt_python_request_handler()
350 PyTuple_SET_ITEM(args, 0, environ); in nxt_python_request_handler()
358 Py_DECREF(args); in nxt_python_request_handler()
901 n = PyTuple_GET_SIZE(args); in nxt_py_start_resp()
907 string = PyTuple_GET_ITEM(args, 0); in nxt_py_start_resp()
962 string = PyTuple_GET_ITEM(args, 0); in nxt_py_start_resp()
1142 n = PyTuple_GET_SIZE(args); in nxt_py_input_read()
[all …]
H A Dnxt_python_asgi.c45 static PyObject *nxt_py_asgi_port_read(PyObject *self, PyObject *args);
1089 nxt_py_asgi_port_read(PyObject *self, PyObject *args) in nxt_py_asgi_port_read() argument
1098 n = PyTuple_GET_SIZE(args); in nxt_py_asgi_port_read()
1108 arg0 = PyTuple_GET_ITEM(args, 0); in nxt_py_asgi_port_read()
1116 arg1 = PyTuple_GET_ITEM(args, 1); in nxt_py_asgi_port_read()
/unit/test/
H A Dconftest.py120 def inner_function(*args, **kwargs): argument
122 func(*args, **kwargs)
678 def run_process(target, *args): argument
681 process = Process(target=target, args=args)
H A Dtest_upstreams_rr.py208 def sum_resps(*args): argument
209 sum = [0] * len(args[0])
210 for arg in args:
H A Dtest_routing.py1115 def check_args(args, query): argument
1116 self.route_match({"arguments": args})
H A Dtest_proxy.py56 def get_http10(self, *args, **kwargs): argument
57 return self.get(*args, http_10=True, **kwargs)
59 def post_http10(self, *args, **kwargs): argument
60 return self.post(*args, http_10=True, **kwargs)
H A Dtest_forwarded_header.py37 def get_addr(self, *args, **kwargs): argument
38 return self.get_fwd(*args, **kwargs)['Remote-Addr']
40 def get_scheme(self, *args, **kwargs): argument
41 return self.get_fwd(*args, **kwargs)['Url-Scheme']
/unit/src/test/
H A Dnxt_http_parse_test.c14 nxt_str_t args; member
746 if (rp->args.start != test->args.start in nxt_http_parse_test_request_line()
747 && !nxt_strstr_eq(&rp->args, &test->args)) in nxt_http_parse_test_request_line()
752 request, &rp->args, &test->args); in nxt_http_parse_test_request_line()
/unit/src/
H A Dnxt_http_variables.c400 nxt_array_t *args; in nxt_http_var_arg() local
412 args = nxt_http_arguments_parse(r); in nxt_http_var_arg()
413 if (nxt_slow_path(args == NULL)) { in nxt_http_var_arg()
417 start = args->elts; in nxt_http_var_arg()
418 nv = start + args->nelts - 1; in nxt_http_var_arg()
H A Dnxt_openssl.c1630 va_list args; local
1640 va_start(args, fmt);
1641 p = nxt_vsprintf(msg, end, fmt, args);
1642 va_end(args);
1739 va_list args; local
1744 va_start(args, fmt);
1745 p = nxt_vsprintf(msg, end, fmt, args);
1746 va_end(args);
H A Dnxt_http_parse.c256 args = NULL; in nxt_http_parse_request_line()
285 args = p + 1; in nxt_http_parse_request_line()
457 rp->args.length = rp->target_end - args; in nxt_http_parse_request_line()
458 rp->args.start = args; in nxt_http_parse_request_line()
884 args = NULL; in nxt_http_parse_complex_target()
911 args = p; in nxt_http_parse_complex_target()
942 args = p; in nxt_http_parse_complex_target()
1127 args: in nxt_http_parse_complex_target()
1135 if (args != NULL) { in nxt_http_parse_complex_target()
1136 rp->args.length = p - args; in nxt_http_parse_complex_target()
[all …]
H A Dnxt_h1proto.c654 r->args = &h1p->parser.args; in nxt_h1p_header_process()
H A Dnxt_conf_validation.c1329 va_list args; in nxt_conf_vldt_error() local
1332 va_start(args, fmt); in nxt_conf_vldt_error()
1333 end = nxt_vsprintf(error, error + NXT_MAX_ERROR_STR, fmt, args); in nxt_conf_vldt_error()
1334 va_end(args); in nxt_conf_vldt_error()
H A Dnxt_router.c5287 req->query_length = (uint32_t) r->args->length; in nxt_router_prepare_msg()
5288 if (r->args->start != NULL) { in nxt_router_prepare_msg()
5290 r->args->start - r->target.start); in nxt_router_prepare_msg()
H A Dnxt_http.h151 nxt_str_t *args; member
H A Dnxt_http_request.c859 nxt_array_t *args; in nxt_http_arguments_parse() local
866 args = nxt_array_create(r->mem_pool, 2, sizeof(nxt_http_name_value_t)); in nxt_http_arguments_parse()
867 if (nxt_slow_path(args == NULL)) { in nxt_http_arguments_parse()
875 dst_start = nxt_mp_nget(r->mem_pool, r->args->length); in nxt_http_arguments_parse()
882 start = r->args->start; in nxt_http_arguments_parse()
883 end = start + r->args->length; in nxt_http_arguments_parse()
900 nv = nxt_http_argument(args, name, name_length, hash, dst_start, in nxt_http_arguments_parse()
945 nv = nxt_http_argument(args, name, name_length, hash, dst_start, dst); in nxt_http_arguments_parse()
951 r->arguments = args; in nxt_http_arguments_parse()
953 return args; in nxt_http_arguments_parse()
H A Dnxt_http_static.c616 if (r->args->length > 0) { in nxt_http_static_send_ready()
617 length += 1 + r->args->length; in nxt_http_static_send_ready()
637 if (r->args->length > 0) { in nxt_http_static_send_ready()
639 nxt_memcpy(p, r->args->start, r->args->length); in nxt_http_static_send_ready()
H A Dnxt_http_parse.h46 nxt_str_t args; member
H A Dnxt_sprintf.c62 va_list args; in nxt_sprintf() local
64 va_start(args, fmt); in nxt_sprintf()
65 p = nxt_vsprintf(buf, end, fmt, args); in nxt_sprintf()
66 va_end(args); in nxt_sprintf()
143 v = va_arg(args, nxt_str_t *); in nxt_vsprintf()
156 p = va_arg(args, const u_char *); in nxt_vsprintf()
169 length = va_arg(args, size_t); in nxt_vsprintf()
248 err = va_arg(args, nxt_err_t); in nxt_vsprintf()
348 i64 = va_arg(args, int64_t); in nxt_vsprintf()
375 f = va_arg(args, double); in nxt_vsprintf()
[all …]
H A Dnxt_gnutls.c684 va_list args; in nxt_gnutls_conn_log_error() local
692 va_start(args, fmt); in nxt_gnutls_conn_log_error()
693 p = nxt_vsprintf(msg, msg + sizeof(msg), fmt, args); in nxt_gnutls_conn_log_error()
694 va_end(args); in nxt_gnutls_conn_log_error()
733 va_list args; in nxt_gnutls_log_error() local
736 va_start(args, fmt); in nxt_gnutls_log_error()
737 p = nxt_vsprintf(msg, msg + sizeof(msg), fmt, args); in nxt_gnutls_log_error()
738 va_end(args); in nxt_gnutls_log_error()
/unit/auto/
H A Dclang38 #define set(dummy, args...) sprintf(args)
/unit/test/unit/applications/
H A Dwebsockets.py187 def frame_write(self, sock, *args, **kwargs): argument
190 frame = self.frame_to_send(*args, **kwargs)
/unit/test/unit/applications/lang/
H A Dgo.py36 args = [
48 args = [
67 print("\n$ GOPATH=" + env['GOPATH'] + " " + " ".join(args))
70 process = subprocess.run(args, env=env, cwd=temp_dir)
/unit/src/ruby/
H A Dnxt_ruby_stream_io.c15 static VALUE nxt_ruby_stream_io_read(VALUE obj, VALUE args);
17 static VALUE nxt_ruby_stream_io_puts(VALUE obj, VALUE args);
149 nxt_ruby_stream_io_read(VALUE obj, VALUE args) in nxt_ruby_stream_io_read() argument
159 if (RARRAY_LEN(args) > 0 && TYPE(RARRAY_PTR(args)[0]) == T_FIXNUM) { in nxt_ruby_stream_io_read()
160 u_size = NUM2LONG(RARRAY_PTR(args)[0]); in nxt_ruby_stream_io_read()
183 if (RARRAY_LEN(args) > 1 && TYPE(RARRAY_PTR(args)[1]) == T_STRING) { in nxt_ruby_stream_io_read()
185 rb_str_set_len(RARRAY_PTR(args)[1], 0); in nxt_ruby_stream_io_read()
203 nxt_ruby_stream_io_puts(VALUE obj, VALUE args) in nxt_ruby_stream_io_puts() argument
207 if (RARRAY_LEN(args) != 1) { in nxt_ruby_stream_io_puts()
220 nxt_ruby_stream_io_write(VALUE obj, VALUE args) in nxt_ruby_stream_io_write() argument
[all …]
/unit/test/unit/
H A Dcontrol.py8 def args_wrapper(self, *args): argument
14 url = args[0] if len(args) == 1 else url_default
17 conf = args[0]
22 url = args[1] if len(args) == 2 else url_default
50 args = {
57 args['body'] = conf
59 return args

12