Lines Matching refs:sapi_module
65 SAPI_API sapi_module_struct sapi_module; variable
71 sapi_module = *sf; in sapi_startup()
208 if (UNEXPECTED(!sapi_module.default_post_reader)) { in sapi_read_post_data()
211 sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type); in sapi_read_post_data()
227 if(sapi_module.default_post_reader) { in sapi_read_post_data()
228 sapi_module.default_post_reader(); in sapi_read_post_data()
236 if (!sapi_module.read_post) { in sapi_read_post_block()
240 read_bytes = sapi_module.read_post(buffer, buflen); in sapi_read_post_block()
267 if (sapi_module.read_post) { in SAPI_POST_READER_FUNC()
416 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate_headers_only()
417 if (sapi_module.activate) { in sapi_activate_headers_only()
418 sapi_module.activate(); in sapi_activate_headers_only()
421 if (sapi_module.input_filter_init ) { in sapi_activate_headers_only()
422 sapi_module.input_filter_init(); in sapi_activate_headers_only()
475 SG(request_info).cookie_data = sapi_module.read_cookies(); in sapi_activate()
477 if (sapi_module.activate) { in sapi_activate()
478 sapi_module.activate(); in sapi_activate()
480 if (sapi_module.input_filter_init) { in sapi_activate()
481 sapi_module.input_filter_init(); in sapi_activate()
528 if (sapi_module.deactivate) { in sapi_deactivate_module()
529 sapi_module.deactivate(); in sapi_deactivate_module()
647 if (!sapi_module.header_handler || in sapi_header_add_op()
648 (SAPI_HEADER_ADD & sapi_module.header_handler(sapi_header, op, &SG(sapi_headers)))) { in sapi_header_add_op()
679 …sapi_module.sapi_error(E_WARNING, "Cannot modify header information - headers already sent by (out… in sapi_header_op()
682 sapi_module.sapi_error(E_WARNING, "Cannot modify header information - headers already sent"); in sapi_header_op()
707 if (sapi_module.header_handler) { in sapi_header_op()
708 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op()
728 sapi_module.sapi_error(E_WARNING, "Header to delete may not contain colon."); in sapi_header_op()
731 if (sapi_module.header_handler) { in sapi_header_op()
734 sapi_module.header_handler(&sapi_header, op, &SG(sapi_headers)); in sapi_header_op()
746 sapi_module.sapi_error(E_WARNING, "Header may not contain " in sapi_header_op()
752 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()
1027 if (!sapi_module.getenv) { in sapi_getenv()
1034 tmp = sapi_module.getenv(name, name_len); in sapi_getenv()
1040 if (strlen(sapi_module.name) == sizeof("cgi-fcgi") - 1 && !strcmp(sapi_module.name, "cgi-fcgi")) { in sapi_getenv()
1045 if (sapi_module.input_filter) { in sapi_getenv()
1046 sapi_module.input_filter(PARSE_STRING, name, &value, strlen(value), NULL); in sapi_getenv()
1053 if (sapi_module.get_fd) { in sapi_get_fd()
1054 return sapi_module.get_fd(fd); in sapi_get_fd()
1062 if (sapi_module.force_http_10) { in sapi_force_http_10()
1063 return sapi_module.force_http_10(); in sapi_force_http_10()
1072 if (sapi_module.get_target_uid) { in sapi_get_target_uid()
1073 return sapi_module.get_target_uid(obj); in sapi_get_target_uid()
1081 if (sapi_module.get_target_gid) { in sapi_get_target_gid()
1082 return sapi_module.get_target_gid(obj); in sapi_get_target_gid()
1092 if (!sapi_module.get_request_time in sapi_get_request_time()
1093 || sapi_module.get_request_time(&SG(global_request_time)) == FAILURE) { in sapi_get_request_time()
1105 if (sapi_module.terminate_process) { in sapi_terminate_process()
1106 sapi_module.terminate_process(); in sapi_terminate_process()