1 #ifndef NGX_HTTP_XSS_FILTER_MODULE_H
2 #define NGX_HTTP_XSS_FILTER_MODULE_H
3 
4 
5 #include <ngx_core.h>
6 #include <ngx_http.h>
7 
8 
9 typedef struct {
10     ngx_str_t       callback_arg;
11 
12     ngx_hash_t      input_types;
13     ngx_array_t    *input_types_keys;
14 
15     ngx_str_t       output_type;
16 
17     ngx_flag_t      get_enabled;
18     ngx_flag_t      check_status;
19     ngx_flag_t      override_status;
20 
21 } ngx_http_xss_loc_conf_t;
22 
23 
24 typedef struct {
25     ngx_int_t       requires_filter;
26 
27 } ngx_http_xss_main_conf_t;
28 
29 
30 typedef struct {
31     ngx_str_t       callback;
32     ngx_flag_t      before_body_sent;
33 
34 } ngx_http_xss_ctx_t;
35 
36 
37 #endif /* NGX_HTTP_XSS_FILTER_MODULE_H */
38 
39