Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 40) sorted by relevance

12

/unit/test/node/get_variables/
H A Dapp.js3 let query = require('url').parse(req.url, true).query;
4 res.setHeader('X-Var-1', query.var1);
5 res.setHeader('X-Var-2', query.var2);
6 res.setHeader('X-Var-3', query.var3);
/unit/src/
H A Dnxt_var.c242 value = query->spare; in nxt_var_cache_value()
548 query = *query_p; in nxt_var_query_init()
557 query->pool = mp; in nxt_var_query_init()
558 query->ctx = ctx; in nxt_var_query_init()
560 *query_p = query; in nxt_var_query_init()
660 query->failed = 1; in nxt_var_query()
668 query->data = data; in nxt_var_query_resolve()
674 query->failed ? query->error : query->ready, in nxt_var_query_resolve()
675 task, query->ctx, query->data); in nxt_var_query_resolve()
688 query->failed ? query->error : query->ready, in nxt_var_query_handle()
[all …]
H A Dnxt_var.h62 void nxt_var_query(nxt_task_t *task, nxt_var_query_t *query,
64 void nxt_var_query_resolve(nxt_task_t *task, nxt_var_query_t *query, void *data,
66 void nxt_var_query_handle(nxt_task_t *task, nxt_var_query_t *query,
H A Dnxt_source.h22 nxt_source_hook_t *query);
H A Dnxt_http_source.h22 nxt_source_hook_t query; member
H A Dnxt_http_source.c89 stream->next = &hs->query; in nxt_http_source_handler()
92 hs->query.context = hs; in nxt_http_source_handler()
93 hs->query.filter = nxt_http_source_status_filter; in nxt_http_source_handler()
215 hs->query.filter = nxt_http_source_header_filter; in nxt_http_source_status_filter()
456 hs->query.context = hsc; in nxt_http_source_header_ready()
457 hs->query.filter = nxt_http_source_chunk_filter; in nxt_http_source_header_ready()
477 hs->query.filter = nxt_http_source_body_filter; in nxt_http_source_header_ready()
H A Dnxt_unit_request.h45 nxt_unit_sptr_t query; member
H A Dnxt_fastcgi_source.h63 nxt_source_hook_t query; member
H A Dnxt_cache.h65 nxt_cache_query_t *query; member
H A Dnxt_file_cache.c162 qw->query = q; in nxt_file_cache_query_locked()
283 q = qw->query; in nxt_cache_wake_handler()
H A Dnxt_fastcgi_source.c163 stream->next = &fs->query; in nxt_fastcgi_source_handler()
173 fs->query.context = &fs->record.parse; in nxt_fastcgi_source_handler()
174 fs->query.filter = nxt_fastcgi_source_record_filter; in nxt_fastcgi_source_handler()
H A Dnxt_cache.c270 qw->query = q; in nxt_cache_node_hold()
387 q = qw->query; in nxt_cache_wake_handler()
/unit/test/node/post_variables/
H A Dapp.js8 let query = require('querystring').parse(body);
9 res.setHeader('X-Var-1', query.var1);
10 res.setHeader('X-Var-2', query.var2);
11 res.setHeader('X-Var-3', query.var3);
/unit/src/java/nginx/unit/
H A DForwardRequestWrapper.java109 public void setQueryString(String query) in setQueryString() argument
111 if (query != null) { in setQueryString()
115 UrlEncoded.decodeUtf8To(query, parameters); in setQueryString()
123 request_.setQueryString(query); in setQueryString()
H A DDynamicPathRequest.java12 public void setQueryString(String query); in setQueryString() argument
H A DIncludeRequestWrapper.java72 public void setQueryString(String query) in setQueryString() argument
74 request_.setAttribute_(RequestDispatcher.INCLUDE_QUERY_STRING, query); in setQueryString()
H A DRequest.java389 public void setQueryString(String query) in setQueryString() argument
391 trace("setQueryString: " + query); in setQueryString()
393 query_string = query; in setQueryString()
829 String query = getQueryString(); in getParameters() local
831 if (query != null) { in getParameters()
832 UrlEncoded.decodeUtf8To(query, parameters); in getParameters()
/unit/src/java/
H A Dnxt_jni_Request.c395 char *query; in nxt_java_Request_getQueryString() local
400 if (r->query.offset != 0) { in nxt_java_Request_getQueryString()
401 query = nxt_unit_sptr_get(&r->query); in nxt_java_Request_getQueryString()
402 return (*env)->NewStringUTF(env, query); in nxt_java_Request_getQueryString()
412 char *target, *query; in nxt_java_Request_getRequestURI() local
419 if (r->query.offset != 0) { in nxt_java_Request_getRequestURI()
420 query = nxt_unit_sptr_get(&r->query); in nxt_java_Request_getRequestURI()
421 return nxt_java_newString(env, target, query - target - 1); in nxt_java_Request_getRequestURI()
/unit/src/test/
H A Dnxt_unit_app_test.c239 if (r->query.offset) { in greeting_app_request_handler()
241 p = copy(p, nxt_unit_sptr_get(&r->query), r->query_length); in greeting_app_request_handler()
/unit/src/python/
H A Dnxt_python_asgi.c578 char *p, *target, *query; in nxt_py_asgi_create_http_scope() local
641 query = nxt_unit_sptr_get(&r->query); in nxt_py_asgi_create_http_scope()
643 if (r->query.offset != 0) { in nxt_py_asgi_create_http_scope()
644 target_length = query - target - 1; in nxt_py_asgi_create_http_scope()
659 v = PyBytes_FromStringAndSize(query, r->query_length); in nxt_py_asgi_create_http_scope()
/unit/pkg/docker/
H A Dtemplate.Dockerfile41 …&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed…
H A DDockerfile.perl5.3641 …&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed…
H A DDockerfile.minimal41 …&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed…
H A DDockerfile.php8.141 …&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed…
H A DDockerfile.ruby3.141 …&& ldd /usr/sbin/unitd | awk '/=>/{print $(NF-1)}' | while read n; do dpkg-query -S $n; done | sed…

12