3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
8 #ifndef _NGX_HTTP_SSI_FILTER_H_INCLUDED_
9 #define _NGX_HTTP_SSI_FILTER_H_INCLUDED_
12 #include <ngx_config.h>
17 #define NGX_HTTP_SSI_MAX_PARAMS 16
19 #define NGX_HTTP_SSI_COMMAND_LEN 32
20 #define NGX_HTTP_SSI_PARAM_LEN 32
21 #define NGX_HTTP_SSI_PARAMS_N 4
24 #define NGX_HTTP_SSI_COND_IF 1
25 #define NGX_HTTP_SSI_COND_ELSE 2
28 #define NGX_HTTP_SSI_NO_ENCODING 0
29 #define NGX_HTTP_SSI_URL_ENCODING 1
30 #define NGX_HTTP_SSI_ENTITY_ENCODING 2
35 ngx_hash_keys_arrays_t commands
;
36 } ngx_http_ssi_main_conf_t
;
49 ngx_table_elt_t
*param
;
50 ngx_table_elt_t params_array
[NGX_HTTP_SSI_PARAMS_N
];
54 ngx_chain_t
**last_out
;
59 ngx_uint_t saved_state
;
65 ngx_list_t
*variables
;
71 u_char
*captures_data
;
74 unsigned conditional
:2;
78 unsigned output_chosen
:1;
80 ngx_http_request_t
*wait
;
87 typedef ngx_int_t (*ngx_http_ssi_command_pt
) (ngx_http_request_t
*r
,
88 ngx_http_ssi_ctx_t
*ctx
, ngx_str_t
**);
97 } ngx_http_ssi_param_t
;
102 ngx_http_ssi_command_pt handler
;
103 ngx_http_ssi_param_t
*params
;
105 unsigned conditional
:2;
108 } ngx_http_ssi_command_t
;
111 extern ngx_module_t ngx_http_ssi_filter_module
;
114 #endif /* _NGX_HTTP_SSI_FILTER_H_INCLUDED_ */