aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-05-19 13:25:22 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-05-19 13:25:22 +0000
commite31e90b3e10ca2afafccae9a57910133d93b2d37 (patch)
tree7177a8f48a555733b170bfcad4e9e7072ea8c027 /src/http/ngx_http_script.h
parentb1a641cafa2ef042035155f68e5f571303853dfc (diff)
downloadnginx-e31e90b3e10ca2afafccae9a57910133d93b2d37.tar.gz
nginx-e31e90b3e10ca2afafccae9a57910133d93b2d37.zip
nginx-0.1.32-RELEASE importrelease-0.1.32
*) 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.
Diffstat (limited to 'src/http/ngx_http_script.h')
-rw-r--r--src/http/ngx_http_script.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/http/ngx_http_script.h b/src/http/ngx_http_script.h
index 21927c1f7..cf80f22b4 100644
--- 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(ngx_http_script_engine_t *e);
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);