Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 42) sorted by last modified time

12

/unit/src/
H A Dnxt_unit.c2014 uint16_t status, uint32_t max_fields_count, uint32_t max_fields_size) in nxt_unit_response_init() argument
2028 nxt_unit_req_debug(req, "init: %d, max fields %d/%d", (int) status, in nxt_unit_response_init()
2071 req->response->status = status; in nxt_unit_response_init()
2134 resp->status = req->response->status; in nxt_unit_response_realloc()
2352 if (req->request->websocket_handshake && req->response->status == 101) { in nxt_unit_response_send()
2521 req->response->status = 101; in nxt_unit_response_upgrade()
H A Dnxt_http_static.c53 nxt_http_static_ctx_t *ctx, nxt_http_status_t status);
306 nxt_http_status_t status; in nxt_http_static_send_ready() local
448 status = NXT_HTTP_NOT_FOUND; in nxt_http_static_send_ready()
457 status = NXT_HTTP_FORBIDDEN; in nxt_http_static_send_ready()
462 status = NXT_HTTP_INTERNAL_SERVER_ERROR; in nxt_http_static_send_ready()
466 if (status != NXT_HTTP_NOT_FOUND) { in nxt_http_static_send_ready()
485 nxt_http_static_next(task, r, ctx, status); in nxt_http_static_send_ready()
506 r->status = NXT_HTTP_OK; in nxt_http_static_send_ready()
600 r->status = NXT_HTTP_MOVED_PERMANENTLY; in nxt_http_static_send_ready()
670 nxt_http_static_ctx_t *ctx, nxt_http_status_t status) in nxt_http_static_next() argument
[all …]
H A Dnxt_http.h125 nxt_http_status_t status:16; member
187 nxt_http_status_t status:16; member
316 nxt_http_status_t status);
H A Dnxt_router.c3827 p = nxt_sprintf(p, p + 3, "%03d", r->status); in nxt_router_access_log_writer()
4296 r->status = resp->status; in nxt_router_response_ready_handler()
4323 && r->status == NXT_HTTP_SWITCHING_PROTOCOLS) in nxt_router_response_ready_handler()
H A Dnxt_http_route.c1336 nxt_http_status_t status; in nxt_http_pass_var_ready() local
1348 status = (ret == NXT_DECLINED) ? NXT_HTTP_NOT_FOUND in nxt_http_pass_var_ready()
1351 nxt_http_request_error(task, r, status); in nxt_http_pass_var_ready()
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_conf_validation.c1649 int64_t status; in nxt_conf_vldt_return() local
1651 status = nxt_conf_get_number(value); in nxt_conf_vldt_return()
1653 if (status < NXT_HTTP_INVALID || status > NXT_HTTP_STATUS_MAX) { in nxt_conf_vldt_return()
H A Dnxt_http_return.c11 nxt_http_status_t status; member
49 conf->status = nxt_conf_get_number(acf->ret); in nxt_http_return_init()
91 nxt_debug(task, "http return: %d (loc: \"%V\")", conf->status, &loc); in nxt_http_return()
94 if (conf->status >= NXT_HTTP_BAD_REQUEST in nxt_http_return()
95 && conf->status <= NXT_HTTP_SERVER_ERROR_MAX) in nxt_http_return()
97 nxt_http_request_error(task, r, conf->status); in nxt_http_return()
111 r->status = conf->status; in nxt_http_return()
H A Dnxt_fastcgi_source.c627 fs->header_in.status = n; in nxt_fastcgi_source_status()
667 if (fs->header_in.status == 0) { in nxt_fastcgi_source_header_ready()
669 fs->header_in.status = 200; in nxt_fastcgi_source_header_ready()
H A Dnxt_main_process.c884 int status; in nxt_main_process_sigchld_handler() local
900 pid = waitpid(-1, &status, WNOHANG); in nxt_main_process_sigchld_handler()
924 if (WTERMSIG(status)) { in nxt_main_process_sigchld_handler()
927 pid, WTERMSIG(status), in nxt_main_process_sigchld_handler()
928 WCOREDUMP(status) ? " (core dumped)" : ""); in nxt_main_process_sigchld_handler()
931 pid, WTERMSIG(status)); in nxt_main_process_sigchld_handler()
936 pid, WEXITSTATUS(status)); in nxt_main_process_sigchld_handler()
H A Dnxt_application.c753 int status; in nxt_proto_sigchld_handler() local
762 pid = waitpid(-1, &status, WNOHANG); in nxt_proto_sigchld_handler()
786 if (WTERMSIG(status)) { in nxt_proto_sigchld_handler()
789 pid, WTERMSIG(status), in nxt_proto_sigchld_handler()
790 WCOREDUMP(status) ? " (core dumped)" : ""); in nxt_proto_sigchld_handler()
793 pid, WTERMSIG(status)); in nxt_proto_sigchld_handler()
798 pid, WEXITSTATUS(status)); in nxt_proto_sigchld_handler()
H A Dnxt_php_sapi.c1185 uint16_t status; local
1216 status = SG(sapi_headers).http_response_code;
1218 rc = nxt_unit_response_init(req, status, fields_count, resp_size);
H A Dnxt_unit.h261 uint16_t status, uint32_t max_fields_count, uint32_t max_fields_size);
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_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/
H A DCHANGES210 *) Bugfix: invalid HTTP responses were generated for some unusual status
/unit/test/
H A Dtest_variables.py50 def check_host(host, status=208): argument
55 == 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/src/ruby/
H A Dnxt_ruby.c64 VALUE result, nxt_int_t status);
698 nxt_int_t status; in nxt_ruby_rack_app_run() local
733 if (nxt_slow_path(status < 0)) { in nxt_ruby_rack_app_run()
834 VALUE status; in nxt_ruby_rack_result_status() local
836 status = rb_ary_entry(result, 0); in nxt_ruby_rack_result_status()
838 if (TYPE(status) == T_FIXNUM) { in nxt_ruby_rack_result_status()
839 return FIX2INT(status); in nxt_ruby_rack_result_status()
842 if (TYPE(status) == T_STRING) { in nxt_ruby_rack_result_status()
844 RSTRING_LEN(status)); in nxt_ruby_rack_result_status()
864 nxt_int_t status) in nxt_ruby_rack_result_headers() argument
[all …]
/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/test/unit/
H A Dhttp.py216 status = re.search(
233 return {'status': int(status), 'headers': headers, 'body': body}
/unit/test/php/cwd/
H A Dindex.php13 $status = opcache_get_status(); variable
14 $opcache = $status['opcache_enabled'] ? '1' : '0';
/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()
/unit/src/nodejs/unit-http/
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()

12