Lines Matching refs:SG
135 rc = (capi_request_context *) SG(server_context); in sapi_capi_ub_write()
149 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_header_handler()
180 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_send_headers()
187 if (SG(sapi_headers).send_default_content_type) { in sapi_capi_send_headers()
191 httpFset_status(rc->t, SG(sapi_headers).http_response_code, NULL); in sapi_capi_send_headers()
201 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_read_post()
204 max_read = MIN(count_bytes, SG(request_info).content_length); in sapi_capi_read_post()
208 max_read = MIN(count_bytes, (SG(request_info).content_length - rc->read_post_bytes)); in sapi_capi_read_post()
227 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_read_cookies()
235 capi_request_context *rc = (capi_request_context *) SG(server_context); in sapi_capi_register_server_variables()
348 capi_request_context *rc = (capi_request_context *) SG(server_context); in capi_log_message()
421 SG(request_info).query_string = capi_strdup(query_string); in capi_request_ctor()
422 SG(request_info).request_uri = capi_strdup(uri); in capi_request_ctor()
423 SG(request_info).request_method = capi_strdup(request_method); in capi_request_ctor()
424 SG(request_info).path_translated = capi_strdup(path_translated); in capi_request_ctor()
425 SG(request_info).content_type = capi_strdup(content_type); in capi_request_ctor()
426 SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0); in capi_request_ctor()
427 SG(sapi_headers).http_response_code = 200; in capi_request_ctor()
432 capi_free(SG(request_info).query_string); in capi_request_dtor()
433 capi_free(SG(request_info).request_uri); in capi_request_dtor()
434 capi_free(SG(request_info).request_method); in capi_request_dtor()
435 capi_free(SG(request_info).path_translated); in capi_request_dtor()
436 capi_free(SG(request_info).content_type); in capi_request_dtor()
447 file_handle.filename = SG(request_info).path_translated; in capi_module_main()
484 SG(server_context) = request_context; in phpFservice()