Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 96) sorted by relevance

1234

/unit/src/nodejs/unit-http/
H A Dnxt_napi.h55 return res; in coerce_to_string()
70 return res; in create_buffer()
85 return res; in create_function()
107 return res; in create_object()
122 return res;
137 return res; in create_string_latin1()
165 return res; in define_class()
187 return res; in get_array_length()
202 return res; in get_buffer_info()
217 return res; in get_cb_info()
[all …]
/unit/test/node/variables/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
8 res.setHeader('Request-Method', req.method);
9 res.setHeader('Request-Uri', req.url);
10 res.setHeader('Server-Protocol', req.httpVersion);
11 res.setHeader('Request-Raw-Headers', req.rawHeaders.join());
12 res.setHeader('Content-Length', Buffer.byteLength(body));
13 res.setHeader('Content-Type', req.headers['content-type']);
14 res.setHeader('Custom-Header', req.headers['custom-header']);
15 res.setHeader('Http-Host', req.headers['host']);
16 res.writeHead(200, {}).end(body);
/unit/test/node/remove_header/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Header', 'test');
4 res.setHeader('Was-Header', res.hasHeader('X-Header').toString());
6 res.removeHeader(req.headers['x-remove']);
7 res.setHeader('Has-Header', res.hasHeader('X-Header').toString());
9 res.end();
/unit/test/node/get_header_names/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('DATE', ['date1', 'date2']);
4 res.setHeader('X-Header', 'blah');
5 res.setHeader('X-Names', res.getHeaderNames());
6 res.end();
/unit/test/node/header_name_case/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Header', '1');
4 res.setHeader('X-header', '2');
5 res.setHeader('X-HEADER', '3');
6 res.end();
/unit/test/node/get_header_type/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Number', 100);
4 res.setHeader('X-Type', typeof(res.getHeader('X-Number')));
5 res.end();
/unit/test/node/write_multiple/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.writeHead(200, {'Content-Type': 'text/plain', 'Content-Length': 14});
4 res.write('write');
5 res.write('write2');
6 res.end('end');
/unit/src/python/
H A Dnxt_python_asgi_lifespan.c204 stage2 = res; in nxt_py_asgi_lifespan_target_startup()
219 Py_DECREF(res); in nxt_py_asgi_lifespan_target_startup()
228 Py_DECREF(res); in nxt_py_asgi_lifespan_target_startup()
232 Py_DECREF(res); in nxt_py_asgi_lifespan_target_startup()
242 Py_DECREF(res); in nxt_py_asgi_lifespan_target_startup()
252 Py_DECREF(res); in nxt_py_asgi_lifespan_target_startup()
353 Py_DECREF(res); in nxt_py_asgi_lifespan_target_shutdown()
514 Py_DECREF(res); in nxt_py_asgi_lifespan_send_()
571 Py_XDECREF(res); in nxt_py_asgi_lifespan_done()
584 Py_XDECREF(res); in nxt_py_asgi_lifespan_done()
[all …]
H A Dnxt_python_asgi.c65 int res; in nxt_python_asgi_check() local
86 return res; in nxt_python_asgi_check()
367 Py_DECREF(res); in nxt_python_asgi_run()
403 Py_DECREF(res); in nxt_py_asgi_remove_reader()
495 stage2 = res; in nxt_py_asgi_request_handler()
514 Py_DECREF(res); in nxt_py_asgi_request_handler()
532 Py_DECREF(res); in nxt_py_asgi_request_handler()
545 Py_DECREF(res); in nxt_py_asgi_request_handler()
881 return res; in nxt_py_asgi_create_subprotocols()
885 Py_DECREF(res); in nxt_py_asgi_create_subprotocols()
[all …]
/unit/test/node/get_variables/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
4 res.setHeader('X-Var-1', query.var1);
5 res.setHeader('X-Var-2', query.var2);
6 res.setHeader('X-Var-3', query.var3);
7 res.end();
/unit/src/java/
H A Dnxt_jni_InputStream.c37 int res; in nxt_java_initInputStream() local
74 res = (*env)->RegisterNatives(env, nxt_java_InputStream_class, in nxt_java_initInputStream()
80 if (res != 0) { in nxt_java_initInputStream()
94 ssize_t res; in nxt_java_InputStream_readLine() local
101 res = nxt_unit_request_readline_size(req, len); in nxt_java_InputStream_readLine()
103 if (res > 0) { in nxt_java_InputStream_readLine()
104 res = nxt_unit_request_read(req, data + off, res); in nxt_java_InputStream_readLine()
111 return res > 0 ? res : -1; in nxt_java_InputStream_readLine()
146 ssize_t res; in nxt_java_InputStream_read() local
153 res = nxt_unit_request_read(req, data + off, len); in nxt_java_InputStream_read()
[all …]
/unit/test/node/post_variables/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
9 res.setHeader('X-Var-1', query.var1);
10 res.setHeader('X-Var-2', query.var2);
11 res.setHeader('X-Var-3', query.var3);
12 res.end();
/unit/test/node/header_name_valid/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.writeHead(200, {});
4 res.setHeader('@$', 'test');
5 res.end();
/unit/test/node/update_header/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Header', 'test');
4 res.setHeader('X-Header', 'new');
5 res.end();
/unit/test/node/has_header/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Has-Header', res.hasHeader(req.headers['x-header']) + '');
4 res.end();
/unit/test/node/write_callback/
H A Dapp.js4 require('http').createServer(function (req, res) { argument
5 res.writeHead(200, {'Content-Type': 'text/plain'});
7 res.write('hello', 'utf8', function() {
11 res.end(a);
/unit/src/
H A Dnxt_port_hash.c65 nxt_int_t res; in nxt_port_hash_add() local
76 res = nxt_lvlhsh_insert(port_hash, &lhq); in nxt_port_hash_add()
78 switch (res) { in nxt_port_hash_add()
89 return res; in nxt_port_hash_add()
96 nxt_int_t res; in nxt_port_hash_remove() local
105 res = nxt_lvlhsh_delete(port_hash, &lhq); in nxt_port_hash_remove()
107 switch (res) { in nxt_port_hash_remove()
118 return res; in nxt_port_hash_remove()
H A Dnxt_websocket.c57 size_t res; in nxt_websocket_frame_header_size() local
64 res = 2; in nxt_websocket_frame_header_size()
67 res += 2; in nxt_websocket_frame_header_size()
69 res += 8; in nxt_websocket_frame_header_size()
73 res += 4; in nxt_websocket_frame_header_size()
76 return res; in nxt_websocket_frame_header_size()
H A Dnxt_job_resolve.c19 struct addrinfo hint, *res, *r; in nxt_job_resolve() local
26 res = NULL; in nxt_job_resolve()
45 err = getaddrinfo((char *) host, NULL, &hint, &res); in nxt_job_resolve()
55 for (r = res; r != NULL; r = r->ai_next) { in nxt_job_resolve()
79 for (r = res; r != NULL; r = r->ai_next) { in nxt_job_resolve()
123 if (nxt_fast_path(res != NULL)) { in nxt_job_resolve()
124 freeaddrinfo(res); in nxt_job_resolve()
/unit/test/node/set_header_array/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('Set-Cookie', ['tc=one,two,three', 'tc=four,five,six']);
4 res.end();
/unit/test/node/header_value_object/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.setHeader('X-Header', {});
4 res.end();
/unit/test/node/write_before_write_head/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.write('blah');
4 res.writeHead(200, {'Content-Type': 'text/plain'}).end();
/unit/test/node/write_return/
H A Dapp.js2 require('http').createServer(function (req, res) { argument
3 res.writeHead(200, {'Content-Type': 'text/plain'})
4 .end(res.write('body').toString());
/unit/test/node/promise_end/
H A Dapp.js4 require('http').createServer(function (req, res) { argument
5 res.write('blah');
8 res.end();
/unit/test/node/promise_handler/
H A Dapp.js4 require('http').createServer(function (req, res) { argument
5 res.end();
8 res.writeHead(200, {'Content-Type': 'text/plain'}).write('blah');

1234