Home
last modified time | relevance | path

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

12

/unit/
H A DREADME.md11 - runs application code in seven languages.
H A DCHANGES431 request processing and continues code execution without holding onto
H A DCODE_OF_CONDUCT.md41 reject comments, commits, code, wiki edits, issues, and other contributions
71 available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
73 For answers to common questions about this code of conduct, see
H A DCONTRIBUTING.md42 information as possible, and a code sample or an executable test case showing
56 Before submitting a PR, please read the NGINX Unit code guidelines to know more
81 code; examples include "Tests:", "Packages:", or "Docker:", and also
/unit/docs/
H A Dunit-openapi.yaml6 single open-source server: running application code, serving static assets,
309 description: "Retrieves the country code from a
340 summary: "Retrieve the state or province code from the
343 description: "Retrieves the state or province code from a
540 description: "Retrieves the country code from a
571 description: "Retrieves the state or province code from a
4382 description: "A MIME type name, such as `text/x-code` or
4943 "text/x-code":
4961 "text/x-code":
4970 "text/x-code":
[all …]
/unit/pkg/rpm/
H A Dunit.spec.in57 applications. It runs the application code in multiple languages
H A Dunit.module.spec.in46 applications. It runs the application code in multiple languages
/unit/pkg/deb/debian/
H A Dcontrol.in23 applications. It runs the application code in multiple languages
/unit/test/unit/applications/
H A Dwebsockets.py68 def serialize_close(self, code=1000, reason=''): argument
69 return struct.pack('!H', code) + reason.encode('utf-8')
123 (code,) = struct.unpack('!H', data[:2])
125 if not (code in self.CLOSE_CODES or 3000 <= code < 5000):
127 frame['code'] = code
/unit/test/
H A Dtest_node_websockets.py31 def check_close(sock, code=1000, no_close=False, frame=None): argument
37 assert frame['code'] == code, 'close code'
1225 for code in valid_codes:
1228 payload = ws.serialize_close(code=code)
1233 for code in invalid_codes:
1236 payload = ws.serialize_close(code=code)
1249 payload = ws.serialize_close(code=5000)
H A Dtest_java_websockets.py31 def check_close(sock, code=1000, no_close=False, frame=None): argument
37 assert frame['code'] == code, 'close code'
1205 for code in valid_codes:
1208 payload = ws.serialize_close(code=code)
1211 check_close(sock, code=code)
1213 for code in invalid_codes:
1216 payload = ws.serialize_close(code=code)
1229 payload = ws.serialize_close(code=5000)
H A Dtest_asgi_websockets.py34 def check_close(sock, code=1000, no_close=False, frame=None): argument
40 assert frame['code'] == code, 'close code'
1277 for code in valid_codes:
1280 payload = ws.serialize_close(code=code)
1285 for code in invalid_codes:
1288 payload = ws.serialize_close(code=code)
1301 payload = ws.serialize_close(code=5000)
/unit/src/python/
H A Dnxt_python_asgi.c72 PyCodeObject *code; in nxt_python_asgi_check() local
80 code = (PyCodeObject *) PyFunction_GET_CODE(func); in nxt_python_asgi_check()
84 (code->co_flags & CO_COROUTINE) != 0 ? "" : "not ", in nxt_python_asgi_check()
85 code->co_argcount); in nxt_python_asgi_check()
87 res = (code->co_flags & CO_COROUTINE) != 0 || code->co_argcount == 1; in nxt_python_asgi_check()
147 PyCodeObject *code; in nxt_python_asgi_init() local
180 code = (PyCodeObject *) PyFunction_GET_CODE(func); in nxt_python_asgi_init()
182 if ((code->co_flags & CO_COROUTINE) == 0) { in nxt_python_asgi_init()
H A Dnxt_python_asgi_websocket.c363 PyObject *code; in nxt_py_asgi_websocket_close() local
380 if (nxt_slow_path(code != NULL && !PyLong_Check(code))) { in nxt_py_asgi_websocket_close()
384 status_code = (code != NULL) ? htons(PyLong_AsLong(code)) in nxt_py_asgi_websocket_close()
736 uint16_t code; in nxt_py_asgi_websocket_pop_msg() local
822 code = NXT_WEBSOCKET_CR_NORMAL; in nxt_py_asgi_websocket_pop_msg()
827 data = PyLong_FromLong(code); in nxt_py_asgi_websocket_pop_msg()
831 (int) code); in nxt_py_asgi_websocket_pop_msg()
1009 PyObject *msg, *code; in nxt_py_asgi_websocket_disconnect_msg() local
1017 if (nxt_slow_path(code == NULL)) { in nxt_py_asgi_websocket_disconnect_msg()
1030 Py_DECREF(code); in nxt_py_asgi_websocket_disconnect_msg()
[all …]
/unit/pkg/docker/
H A Dwelcome.md16 - See our GitHub repo to browse the code, contribute, or seek help from the community.
/unit/pkg/deb/
H A DMakefile.jsc2053 This version of Unit code is made available in support of the open source
55 testing purposes only. This Unit code is untested and presumed incompatible
57 write to this code. You should instead deploy and write production
H A DMakefile.jsc1953 This version of Unit code is made available in support of the open source
55 testing purposes only. This Unit code is untested and presumed incompatible
57 write to this code. You should instead deploy and write production
H A DMakefile.jsc1853 This version of Unit code is made available in support of the open source
55 testing purposes only. This Unit code is untested and presumed incompatible
57 write to this code. You should instead deploy and write production
H A DMakefile.jsc1653 This version of Unit code is made available in support of the open source
55 testing purposes only. This Unit code is untested and presumed incompatible
57 write to this code. You should instead deploy and write production
/unit/auto/os/
H A Dconf8 # may lack code required by the modules. Dynamic linkers allow to specify
/unit/pkg/deb/debian.module/
H A Dcontrol.in20 applications. It runs the application code in multiple languages
H A Dcontrol-noarch.in18 applications. It runs the application code in multiple languages
/unit/src/perl/
H A Dnxt_perl_psgi_layer.c161 IV code; in nxt_perl_psgi_layer_stream_close() local
163 code = PerlIOBase_close(aTHX_ f); in nxt_perl_psgi_layer_stream_close()
166 return code; in nxt_perl_psgi_layer_stream_close()
/unit/src/java/nginx/unit/
H A DContext.java973 Object code = req.getAttribute(RequestDispatcher.ERROR_STATUS_CODE); in service() local
974 if (code != null && code instanceof Integer) { in service()
975 handleStatusCode((Integer) code, req, resp); in service()
1046 private void handleStatusCode(int code, Request req, Response resp) in handleStatusCode() argument
1051 location = error2location_.get(code); in handleStatusCode()
1054 trace("Status " + code + " matched. Error page location: " + location); in handleStatusCode()
1408 Integer code = Integer.parseInt(child_node.getTextContent().trim()); in processWebXml() local
1410 error2location_.put(code, location); in processWebXml()
1411 trace("error-page: code " + code + " -> " + location); in processWebXml()
/unit/src/
H A Dnxt_h1proto_websocket.c14 uint16_t code; member
404 uint16_t code; in nxt_h1p_conn_ws_frame_process() local
422 code = ((p[0] ^ mask[0]) << 8) + (p[1] ^ mask[1]); in nxt_h1p_conn_ws_frame_process()
424 if (nxt_slow_path(code < 1000 || code >= 5000 in nxt_h1p_conn_ws_frame_process()
425 || (code > 1003 && code < 1007) in nxt_h1p_conn_ws_frame_process()
426 || (code > 1014 && code < 3000))) in nxt_h1p_conn_ws_frame_process()
429 code); in nxt_h1p_conn_ws_frame_process()
603 out = nxt_http_buf_mem(task, r, 2 + sizeof(err->code) + desc.length); in hxt_h1p_send_ws_error()
613 p = nxt_websocket_frame_init(wsh, sizeof(err->code) + desc.length); in hxt_h1p_send_ws_error()
618 *p++ = (err->code >> 8) & 0xFF; in hxt_h1p_send_ws_error()
[all …]

12