Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 43) sorted by relevance

12

/unit/src/nodejs/unit-http/
H A Dnxt_napi.h48 napi_status status; in coerce_to_string() local
51 if (status != napi_ok) { in coerce_to_string()
63 napi_status status; in create_buffer() local
78 napi_status status; in create_function() local
100 napi_status status; in create_object() local
115 napi_status status; member
130 napi_status status; in create_string_latin1() local
157 napi_status status; in define_class() local
180 napi_status status; in get_array_length() local
195 napi_status status; in get_buffer_info() local
[all …]
H A Dwebsocket_router_request.js49 WebSocketRouterRequest.prototype.reject = function(status, reason, extraHeaders) { argument
50 this.webSocketRequest.reject(status, reason, extraHeaders);
H A Dwebsocket_request.js448 WebSocketRequest.prototype.reject = function(status, reason, extraHeaders) { argument
456 if (typeof(status) !== 'number') {
457 status = 403;
462 response.statusCode = status;
H A Dunit.cpp28 static void read_callback(uv_poll_t *handle, int status, int events);
115 port_data_t::read_callback(uv_poll_t *handle, int status, int events) in read_callback() argument
477 napi_status status; in add_port() local
488 status = napi_get_uv_event_loop(obj->env(), &loop); in add_port()
489 if (status != napi_ok) { in add_port()
586 napi_status status; in create_headers() local
593 status = napi_create_array_with_length(env(), r->fields_count * 2, in create_headers()
595 if (status != napi_ok) { in create_headers()
/unit/src/
H A Dnxt_http_error.c29 nxt_http_status_t status) in nxt_http_request_error() argument
33 nxt_debug(task, "http request error: %d", status); in nxt_http_request_error()
39 r->error = (status == NXT_HTTP_INTERNAL_SERVER_ERROR); in nxt_http_request_error()
41 r->status = status; in nxt_http_request_error()
93 r->status, r->status); in nxt_http_request_send_error_body()
H A Dnxt_http_response.c48 nxt_int_t status; in nxt_http_response_status() local
56 status = nxt_int_parse(field->value, 3); in nxt_http_response_status()
58 if (status >= 100 && status <= 999) { in nxt_http_response_status()
59 r->status = status; in nxt_http_response_status()
H A Dnxt_http_return.c11 nxt_http_status_t status; member
52 conf->status = nxt_conf_get_number(acf->ret); in nxt_http_return_init()
94 nxt_debug(task, "http return: %d (loc: \"%V\")", conf->status, &loc); in nxt_http_return()
97 if (conf->status >= NXT_HTTP_BAD_REQUEST in nxt_http_return()
98 && conf->status <= NXT_HTTP_SERVER_ERROR_MAX) in nxt_http_return()
100 nxt_http_request_error(task, r, conf->status); in nxt_http_return()
114 r->status = conf->status; in nxt_http_return()
H A Dnxt_h1proto.c551 nxt_http_status_t status; in nxt_h1p_conn_request_header_parse() local
594 status = ret; in nxt_h1p_conn_request_header_parse()
849 nxt_http_status_t status; in nxt_h1p_request_body_read() local
1209 const nxt_str_t *status; in nxt_h1p_request_header_send() local
1228 n = r->status; in nxt_h1p_request_header_send()
1264 size = status->length; in nxt_h1p_request_header_send()
1326 p = nxt_cpymem(header->mem.free, status->start, status->length); in nxt_h1p_request_header_send()
1603 if (r->status == 0) { in nxt_h1p_conn_request_error()
2585 nxt_int_t status; in nxt_h1p_peer_header_parse() local
2587 if (peer->status < 0) { in nxt_h1p_peer_header_parse()
[all …]
H A Dnxt_controller.c31 nxt_uint_t status; member
1126 resp.status = 404; in nxt_controller_process_request()
1135 resp.status = 405; in nxt_controller_process_request()
1144 resp.status = 500; in nxt_controller_process_request()
1398 resp.status = 405; in nxt_controller_process_config()
1407 resp.status = 404; in nxt_controller_process_config()
1416 resp.status = 400; in nxt_controller_process_config()
1425 resp.status = 500; in nxt_controller_process_config()
1563 resp.status = 405; in nxt_controller_process_cert()
1572 resp.status = 400; in nxt_controller_process_cert()
[all …]
H A Dnxt_unit_response.h19 uint16_t status; member
H A Dnxt_runtime.h12 typedef void (*nxt_runtime_cont_t)(nxt_task_t *task, nxt_uint_t status);
56 uint8_t status; member
90 void nxt_runtime_quit(nxt_task_t *task, nxt_uint_t status);
H A Dnxt_http_static.c53 nxt_http_static_ctx_t *ctx, nxt_http_status_t status);
309 nxt_http_status_t status; in nxt_http_static_send_ready() local
451 status = NXT_HTTP_NOT_FOUND; in nxt_http_static_send_ready()
460 status = NXT_HTTP_FORBIDDEN; in nxt_http_static_send_ready()
465 status = NXT_HTTP_INTERNAL_SERVER_ERROR; in nxt_http_static_send_ready()
469 if (status != NXT_HTTP_NOT_FOUND) { in nxt_http_static_send_ready()
488 nxt_http_static_next(task, r, ctx, status); in nxt_http_static_send_ready()
509 r->status = NXT_HTTP_OK; in nxt_http_static_send_ready()
603 r->status = NXT_HTTP_MOVED_PERMANENTLY; in nxt_http_static_send_ready()
673 nxt_http_static_ctx_t *ctx, nxt_http_status_t status) in nxt_http_static_next() argument
[all …]
H A Dnxt_upstream_source.h27 uint16_t status; /* 16 bits */ member
H A Dnxt_http_proxy.c256 r->status = peer->status; in nxt_http_proxy_header_read()
258 nxt_debug(task, "http proxy status: %d", peer->status); in nxt_http_proxy_header_read()
388 nxt_http_request_error(&r->task, r, peer->status); in nxt_http_proxy_error()
H A Dnxt_application.c766 int status; in nxt_proto_sigchld_handler() local
779 pid = waitpid(-1, &status, WNOHANG); in nxt_proto_sigchld_handler()
805 if (WTERMSIG(status)) { in nxt_proto_sigchld_handler()
810 pid, WTERMSIG(status), in nxt_proto_sigchld_handler()
811 NXT_WCOREDUMP(status) ? " (core dumped)" : ""); in nxt_proto_sigchld_handler()
815 pid, WTERMSIG(status), in nxt_proto_sigchld_handler()
816 NXT_WCOREDUMP(status) ? " (core dumped)" : ""); in nxt_proto_sigchld_handler()
824 pid, WEXITSTATUS(status)); in nxt_proto_sigchld_handler()
828 pid, WEXITSTATUS(status)); in nxt_proto_sigchld_handler()
H A Dnxt_runtime.c23 static void nxt_runtime_initial_start(nxt_task_t *task, nxt_uint_t status);
375 nxt_runtime_initial_start(nxt_task_t *task, nxt_uint_t status) in nxt_runtime_initial_start() argument
431 nxt_runtime_quit(nxt_task_t *task, nxt_uint_t status) in nxt_runtime_quit() argument
438 rt->status |= status; in nxt_runtime_quit()
545 int status, engine_count; in nxt_runtime_exit() local
590 status = rt->status; in nxt_runtime_exit()
610 nxt_debug(task, "exit: %d", status); in nxt_runtime_exit()
612 exit(status); in nxt_runtime_exit()
/unit/test/
H A Dtest_variables.py55 def check_host(host, status=208): argument
60 == status
82 def check_referer(referer, status=213): argument
91 == status
101 def check_user_agent(user_agent, status=214): argument
110 == status
209 def check_header(header, status=210): argument
214 == status
255 def check_cookie(cookie, status=210): argument
264 == status
H A Dtest_upstreams_rr.py50 status = self.get(port=port)['status']
51 if 200 > status or status > 209:
54 ups = status % 10
77 status = re.findall(r'HTTP\/\d\.\d\s(\d\d\d)', resp)
78 status = list(filter(lambda x: x[:2] == '20', status))
79 ups = list(map(lambda x: int(x[-1]), status))
H A Dtest_routing.py37 def host(self, host, status): argument
40 == status
43 def cookie(self, cookie, status): argument
52 == status
254 status = self.route(
257 if 'error' not in status:
260 status = self.route(
263 if 'error' not in status:
/unit/test/php/cwd/
H A Dindex.php13 $status = opcache_get_status(); variable
14 $opcache = $status['opcache_enabled'] ? '1' : '0';
/unit/src/perl/
H A Dnxt_perl_psgi.c486 int status, res; in nxt_perl_psgi_ctx_init() local
511 if (nxt_slow_path(status != 0)) { in nxt_perl_psgi_ctx_init()
525 status = perl_run(my_perl); in nxt_perl_psgi_ctx_init()
527 if (nxt_slow_path(status != 0)) { in nxt_perl_psgi_ctx_init()
761 nxt_str_t status; in nxt_perl_psgi_result_status() local
766 status.start = (u_char *) SvPV(*sv_status, status.length); in nxt_perl_psgi_result_status()
768 space = nxt_memchr(status.start, ' ', status.length); in nxt_perl_psgi_result_status()
770 status.length = space - status.start; in nxt_perl_psgi_result_status()
773 return nxt_int_parse(status.start, status.length); in nxt_perl_psgi_result_status()
1027 nxt_int_t status; in nxt_perl_psgi_result_array() local
[all …]
/unit/src/java/nginx/unit/websocket/
H A DWsWebSocketContainer.java358 if (httpResponse.status != 101) { in connectToServerRecursive()
359 if(isRedirectStatus(httpResponse.status)){ in connectToServerRecursive()
368 Integer.toString(httpResponse.status))); in connectToServerRecursive()
397 else if (httpResponse.status == 401) { in connectToServerRecursive()
402 Integer.valueOf(httpResponse.status))); in connectToServerRecursive()
436 Integer.toString(httpResponse.status))); in connectToServerRecursive()
793 int status = 0; in processResponse() local
820 status = parseStatus(line); in processResponse()
1105 private final int status; field in WsWebSocketContainer.HttpResponse
1109 this.status = status; in HttpResponse()
[all …]
/unit/src/ruby/
H A Dnxt_ruby.c63 VALUE result, nxt_int_t status);
663 nxt_int_t status; in nxt_ruby_rack_app_run() local
698 if (nxt_slow_path(status < 0)) { in nxt_ruby_rack_app_run()
799 VALUE status; in nxt_ruby_rack_result_status() local
801 status = rb_ary_entry(result, 0); in nxt_ruby_rack_result_status()
803 if (TYPE(status) == T_FIXNUM) { in nxt_ruby_rack_result_status()
804 return FIX2INT(status); in nxt_ruby_rack_result_status()
807 if (TYPE(status) == T_STRING) { in nxt_ruby_rack_result_status()
809 RSTRING_LEN(status)); in nxt_ruby_rack_result_status()
829 nxt_int_t status) in nxt_ruby_rack_result_headers() argument
[all …]
/unit/pkg/deb/debian/
H A Dunit.init39 status)
/unit/src/python/
H A Dnxt_python_asgi_http.c302 PyObject *status, *headers, *res; in nxt_py_asgi_http_response_start() local
306 status = PyDict_GetItem(dict, nxt_py_status_str); in nxt_py_asgi_http_response_start()
307 if (nxt_slow_path(status == NULL || !PyLong_Check(status))) { in nxt_py_asgi_http_response_start()
327 rc = nxt_unit_response_init(http->req, PyLong_AsLong(status), in nxt_py_asgi_http_response_start()

12