Mercurial > hg > nginx-quic
diff src/http/ngx_http_script.h @ 515:417a087c9c4d release-0.1.32
nginx-0.1.32-RELEASE import
*) Bugfix: the arguments were omitted in the redirects, issued by the
"rewrite" directive; the bug had appeared in 0.1.29.
*) Feature: the "if" directive supports the captures in regular
expressions.
*) Feature: the "set" directive supports the variables and the captures
of regular expressions.
*) Feature: the "X-Accel-Redirect" response header line is supported in
proxy and FastCGI mode.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 19 May 2005 13:25:22 +0000 |
parents | 9b8c906f6e63 |
children | dadfa78d2270 |
line wrap: on
line diff
--- a/src/http/ngx_http_script.h +++ b/src/http/ngx_http_script.h @@ -19,7 +19,7 @@ typedef struct { ngx_http_variable_value_t *sp; ngx_str_t buf; - ngx_str_t *line; + ngx_str_t line; /* the start of the rewritten arguments */ u_char *args; @@ -29,6 +29,7 @@ typedef struct { unsigned log:1; int *captures; + ngx_uint_t ncaptures; ngx_int_t status; ngx_http_request_t *request; @@ -130,6 +131,12 @@ typedef struct { typedef struct { ngx_http_script_code_pt code; + ngx_array_t *lengths; +} ngx_http_script_complex_value_code_t; + + +typedef struct { + ngx_http_script_code_pt code; uintptr_t value; uintptr_t text_len; uintptr_t text_data; @@ -155,6 +162,7 @@ void ngx_http_script_copy_capture_code(n void ngx_http_script_start_args_code(ngx_http_script_engine_t *e); void ngx_http_script_return_code(ngx_http_script_engine_t *e); void ngx_http_script_if_code(ngx_http_script_engine_t *e); +void ngx_http_script_complex_value_code(ngx_http_script_engine_t *e); void ngx_http_script_value_code(ngx_http_script_engine_t *e); void ngx_http_script_set_var_code(ngx_http_script_engine_t *e); void ngx_http_script_var_code(ngx_http_script_engine_t *e);