Lines Matching refs:sapi_module

73 SAPI_API sapi_module_struct sapi_module;  variable
79 sapi_module = *sf; in sapi_startup()
216 if (!sapi_module.default_post_reader) { in sapi_read_post_data()
219 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type); in sapi_read_post_data()
233 if(sapi_module.default_post_reader) { in sapi_read_post_data()
234 sapi_module.default_post_reader(); in sapi_read_post_data()
242 if (!sapi_module.read_post) { in sapi_read_post_block()
246 read_bytes = sapi_module.read_post(buffer, buflen); in sapi_read_post_block()
271 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
422 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate_headers_only()
423 if (sapi_module.activate) { in sapi_activate_headers_only()
424 sapi_module.activate(); in sapi_activate_headers_only()
427 if (sapi_module.input_filter_init ) { in sapi_activate_headers_only()
428 sapi_module.input_filter_init(); in sapi_activate_headers_only()
479 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate()
481 if (sapi_module.activate) { in sapi_activate()
482 sapi_module.activate(); in sapi_activate()
484 if (sapi_module.input_filter_init) { in sapi_activate()
485 sapi_module.input_filter_init(); in sapi_activate()
529 if (sapi_module.deactivate) { in sapi_deactivate()
530 sapi_module.deactivate(); in sapi_deactivate()
638 if (!sapi_module.header_handler || in sapi_header_add_op()
639 (SAPI_HEADER_ADD & sapi_module.header_handler(sapi_header, op, &SG(sapi_headers)))) { in sapi_header_add_op()
670sapi_module.sapi_error(E_WARNING, "Cannot modify header information - headers already sent by (out… in sapi_header_op()
673 sapi_module.sapi_error(E_WARNING, "Cannot modify header information - headers already sent"); in sapi_header_op()
698 if (sapi_module.header_handler) { in sapi_header_op()
699 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op()
721 sapi_module.sapi_error(E_WARNING, "Header to delete may not contain colon."); in sapi_header_op()
724 if (sapi_module.header_handler) { in sapi_header_op()
727 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op()
739 sapi_module.sapi_error(E_WARNING, "Header may not contain " in sapi_header_op()
745 sapi_module.sapi_error(E_WARNING, "Header may not contain NUL bytes"); in sapi_header_op()
855 if (SG(sapi_headers).send_default_content_type && sapi_module.send_headers) { in sapi_send_headers()
887 if (sapi_module.send_headers) { in sapi_send_headers()
888 retval = sapi_module.send_headers(&SG(sapi_headers)); in sapi_send_headers()
908 sapi_module.send_header(&http_status_line, SG(server_context)); in sapi_send_headers()
910 …with_argument(&SG(sapi_headers).headers, (llist_apply_with_arg_func_t) sapi_module.send_header, SG… in sapi_send_headers()
915 sapi_module.send_header(&default_header, SG(server_context)); in sapi_send_headers()
918 sapi_module.send_header(NULL, SG(server_context)); in sapi_send_headers()
977 sapi_module.default_post_reader = default_post_reader; in sapi_register_default_post_reader()
987 sapi_module.treat_data = treat_data; in sapi_register_treat_data()
996 sapi_module.input_filter = input_filter; in sapi_register_input_filter()
997 sapi_module.input_filter_init = input_filter_init; in sapi_register_input_filter()
1003 if (sapi_module.flush) { in sapi_flush()
1004 sapi_module.flush(SG(server_context)); in sapi_flush()
1013 if (sapi_module.get_stat) { in sapi_get_stat()
1014 return sapi_module.get_stat(); in sapi_get_stat()
1029 if (sapi_module.getenv) { in sapi_getenv()
1030 char *value, *tmp = sapi_module.getenv(name, name_len); in sapi_getenv()
1034 … if (strlen(sapi_module.name) == sizeof("cgi-fcgi") - 1 && !strcmp(sapi_module.name, "cgi-fcgi")) { in sapi_getenv()
1042 if (sapi_module.input_filter) { in sapi_getenv()
1043 sapi_module.input_filter(PARSE_STRING, name, &value, strlen(value), NULL); in sapi_getenv()
1052 if (sapi_module.get_fd) { in sapi_get_fd()
1053 return sapi_module.get_fd(fd); in sapi_get_fd()
1061 if (sapi_module.force_http_10) { in sapi_force_http_10()
1062 return sapi_module.force_http_10(); in sapi_force_http_10()
1071 if (sapi_module.get_target_uid) { in sapi_get_target_uid()
1072 return sapi_module.get_target_uid(obj); in sapi_get_target_uid()
1080 if (sapi_module.get_target_gid) { in sapi_get_target_gid()
1081 return sapi_module.get_target_gid(obj); in sapi_get_target_gid()
1091 if (sapi_module.get_request_time && SG(server_context)) { in sapi_get_request_time()
1092 SG(global_request_time) = sapi_module.get_request_time(); in sapi_get_request_time()
1105 if (sapi_module.terminate_process) { in sapi_terminate_process()
1106 sapi_module.terminate_process(); in sapi_terminate_process()