#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
#include "ngx_http_xslt2_xml.h"
Go to the source code of this file.
Data Structures | |
struct | ngx_http_xslt2_filter_main_conf_t |
XXSLT filter main configuration. More... | |
struct | ngx_http_xslt2_filter_loc_conf_t |
XXSLT filter local configuration. More... | |
struct | ngx_http_xslt2_filter_ctx_t |
XXSLT filter context. More... | |
Defines | |
#define | XXSLT_USE_CACHE 11 |
#define | XXSLT_NO_CACHE 12 |
Functions | |
ngx_int_t | ngx_http_xslt2_process_data (ngx_http_request_t *r) |
Processes output data packs. | |
ngx_int_t | ngx_http_xslt2_finalize_with_error (ngx_http_request_t *r, ngx_int_t err, char *msg,...) |
Finalizes request and generates an appropriate error page. |
#define XXSLT_NO_CACHE 12 |
Definition at line 32 of file ngx_http_xslt2_filter_module.h.
Referenced by ngx_http_xslt2_xml_mxcache_get_handler(), and ngx_http_xxslt_parse_mxcache_get_handler().
#define XXSLT_USE_CACHE 11 |
Definition at line 31 of file ngx_http_xslt2_filter_module.h.
Referenced by ngx_http_xslt2_xml_get_stylesheet(), ngx_http_xslt2_xml_stylesheet_node(), ngx_http_xxslt_parse_download_handler(), ngx_http_xxslt_parse_get_include(), ngx_http_xxslt_parse_get_local_include(), ngx_http_xxslt_parse_include_node(), ngx_http_xxslt_parse_process_include(), and ngx_http_xxslt_parse_use_alt_src().
ngx_int_t ngx_http_xslt2_finalize_with_error | ( | ngx_http_request_t * | r, | |
ngx_int_t | err, | |||
char * | msg, | |||
... | ||||
) |
Finalizes request and generates an appropriate error page.
If err is greater than 0, then the page will be generated with your msg, otherwise the standard nginx 503 page.
r | nginx http request | |
err | error code | |
msg | error page message |
Definition at line 351 of file ngx_http_xslt2_filter_module.c.
References ngx_http_xslt2_send().
Referenced by ngx_http_xslt2_xml_add_data_chunk(), ngx_http_xslt2_xml_apply_stylesheets(), ngx_http_xslt2_xml_download_handler(), ngx_http_xslt2_xml_get_external_stylesheet(), ngx_http_xslt2_xml_get_local_stylesheet(), ngx_http_xslt2_xml_mxcache_get_handler(), and ngx_http_xslt2_xml_return_original().
ngx_int_t ngx_http_xslt2_process_data | ( | ngx_http_request_t * | r | ) |
Processes output data packs.
Passes through the queue and performs actions specific to the data type.
r | nginx http request |
Definition at line 280 of file ngx_http_xslt2_filter_module.c.
References ngx_http_xslt2_xml_data_t::buffer_chain, ngx_http_xslt2_xml_data_t::done, ngx_http_xslt2_filter_module, ngx_http_xslt2_send(), ngx_http_xslt2_xml_data_t::res_len, and ngx_http_xslt2_filter_ctx_t::xml_data.
Referenced by ngx_http_xslt2_xml_apply_stylesheets(), and ngx_http_xslt2_xml_return_original().