Mercurial > hg > nginx
comparison src/http/modules/ngx_http_gzip_filter.c @ 412:199cd29f35a3
nginx-0.0.10-2004-08-31-19:32:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 31 Aug 2004 15:32:52 +0000 |
parents | 54f76b0b8dca |
children | 3c56e834be46 |
comparison
equal
deleted
inserted
replaced
411:4765ded59eaa | 412:199cd29f35a3 |
---|---|
120 { ngx_string("gzip"), | 120 { ngx_string("gzip"), |
121 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, | 121 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, |
122 ngx_conf_set_flag_slot, | 122 ngx_conf_set_flag_slot, |
123 NGX_HTTP_LOC_CONF_OFFSET, | 123 NGX_HTTP_LOC_CONF_OFFSET, |
124 offsetof(ngx_http_gzip_conf_t, enable), | 124 offsetof(ngx_http_gzip_conf_t, enable), |
125 NULL}, | 125 NULL }, |
126 | 126 |
127 { ngx_string("gzip_buffers"), | 127 { ngx_string("gzip_buffers"), |
128 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2, | 128 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE2, |
129 ngx_conf_set_bufs_slot, | 129 ngx_conf_set_bufs_slot, |
130 NGX_HTTP_LOC_CONF_OFFSET, | 130 NGX_HTTP_LOC_CONF_OFFSET, |
131 offsetof(ngx_http_gzip_conf_t, bufs), | 131 offsetof(ngx_http_gzip_conf_t, bufs), |
132 NULL}, | 132 NULL }, |
133 | 133 |
134 { ngx_string("gzip_comp_level"), | 134 { ngx_string("gzip_comp_level"), |
135 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 135 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
136 ngx_conf_set_num_slot, | 136 ngx_conf_set_num_slot, |
137 NGX_HTTP_LOC_CONF_OFFSET, | 137 NGX_HTTP_LOC_CONF_OFFSET, |
138 offsetof(ngx_http_gzip_conf_t, level), | 138 offsetof(ngx_http_gzip_conf_t, level), |
139 &ngx_http_gzip_comp_level_bounds}, | 139 &ngx_http_gzip_comp_level_bounds }, |
140 | 140 |
141 { ngx_string("gzip_window"), | 141 { ngx_string("gzip_window"), |
142 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 142 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
143 ngx_conf_set_size_slot, | 143 ngx_conf_set_size_slot, |
144 NGX_HTTP_LOC_CONF_OFFSET, | 144 NGX_HTTP_LOC_CONF_OFFSET, |
145 offsetof(ngx_http_gzip_conf_t, wbits), | 145 offsetof(ngx_http_gzip_conf_t, wbits), |
146 &ngx_http_gzip_set_window_p}, | 146 &ngx_http_gzip_set_window_p }, |
147 | 147 |
148 { ngx_string("gzip_hash"), | 148 { ngx_string("gzip_hash"), |
149 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 149 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
150 ngx_conf_set_size_slot, | 150 ngx_conf_set_size_slot, |
151 NGX_HTTP_LOC_CONF_OFFSET, | 151 NGX_HTTP_LOC_CONF_OFFSET, |
152 offsetof(ngx_http_gzip_conf_t, memlevel), | 152 offsetof(ngx_http_gzip_conf_t, memlevel), |
153 &ngx_http_gzip_set_hash_p}, | 153 &ngx_http_gzip_set_hash_p }, |
154 | 154 |
155 { ngx_string("gzip_no_buffer"), | 155 { ngx_string("gzip_no_buffer"), |
156 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, | 156 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, |
157 ngx_conf_set_flag_slot, | 157 ngx_conf_set_flag_slot, |
158 NGX_HTTP_LOC_CONF_OFFSET, | 158 NGX_HTTP_LOC_CONF_OFFSET, |
159 offsetof(ngx_http_gzip_conf_t, no_buffer), | 159 offsetof(ngx_http_gzip_conf_t, no_buffer), |
160 NULL}, | 160 NULL }, |
161 | 161 |
162 { ngx_string("gzip_http_version"), | 162 { ngx_string("gzip_http_version"), |
163 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_ANY, | 163 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_ANY, |
164 ngx_conf_set_enum_slot, | 164 ngx_conf_set_enum_slot, |
165 NGX_HTTP_LOC_CONF_OFFSET, | 165 NGX_HTTP_LOC_CONF_OFFSET, |
176 { ngx_string("gzip_min_length"), | 176 { ngx_string("gzip_min_length"), |
177 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, | 177 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1, |
178 ngx_conf_set_size_slot, | 178 ngx_conf_set_size_slot, |
179 NGX_HTTP_LOC_CONF_OFFSET, | 179 NGX_HTTP_LOC_CONF_OFFSET, |
180 offsetof(ngx_http_gzip_conf_t, min_length), | 180 offsetof(ngx_http_gzip_conf_t, min_length), |
181 NULL}, | 181 NULL }, |
182 | 182 |
183 ngx_null_command | 183 ngx_null_command |
184 }; | 184 }; |
185 | 185 |
186 | 186 |