aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index a576fab5..9a6c5cd9 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -328,10 +328,19 @@ static njs_external_t ngx_http_js_ext_request[] = {
{
.flags = NJS_EXTERN_PROPERTY,
- .name.string = njs_str("reqBody"),
+ .name.string = njs_str("requestText"),
.enumerable = 1,
.u.property = {
.handler = ngx_http_js_ext_get_request_body,
+ .magic32 = NGX_JS_STRING,
+ }
+ },
+
+ {
+ .flags = NJS_EXTERN_PROPERTY,
+ .name.string = njs_str("requestBuffer"),
+ .u.property = {
+ .handler = ngx_http_js_ext_get_request_body,
.magic32 = NGX_JS_BUFFER,
}
},
@@ -355,10 +364,19 @@ static njs_external_t ngx_http_js_ext_request[] = {
{
.flags = NJS_EXTERN_PROPERTY,
- .name.string = njs_str("resBody"),
+ .name.string = njs_str("responseText"),
.enumerable = 1,
.u.property = {
.handler = ngx_http_js_ext_get_response_body,
+ .magic32 = NGX_JS_STRING,
+ }
+ },
+
+ {
+ .flags = NJS_EXTERN_PROPERTY,
+ .name.string = njs_str("responseBuffer"),
+ .u.property = {
+ .handler = ngx_http_js_ext_get_response_body,
.magic32 = NGX_JS_BUFFER,
}
},