src/http/modules/xslt2/ngx_http_xslt2_filter_module.h File Reference

#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 Documentation

#define XXSLT_NO_CACHE   12
#define XXSLT_USE_CACHE   11

Function Documentation

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.

Parameters:
r nginx http request
err error code
msg error page message
Returns:
NGX_ERROR

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.

Parameters:
r nginx http request
Returns:
NGX_OK if all data processed, NGX_ERROR on error, or NGX_DONE if not all data are ready

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().


Generated on Mon Oct 12 14:03:36 2009 for XXSLT by  doxygen 1.6.1