[njs] Change: removed deprecated r.requestBody and r.responseBody.
Dmitry Volyntsev
xeioex at nginx.com
Thu May 18 04:51:28 UTC 2023
details: https://hg.nginx.org/njs/rev/ce344efc8b46
branches:
changeset: 2121:ce344efc8b46
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Wed May 17 17:11:41 2023 -0700
description:
Change: removed deprecated r.requestBody and r.responseBody.
Both properties were deprecated since 0.5.0.
diffstat:
nginx/ngx_http_js_module.c | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diffs (57 lines):
diff -r af41742d63a2 -r ce344efc8b46 nginx/ngx_http_js_module.c
--- a/nginx/ngx_http_js_module.c Wed May 17 00:39:56 2023 -0700
+++ b/nginx/ngx_http_js_module.c Wed May 17 17:11:41 2023 -0700
@@ -603,15 +603,6 @@ static njs_external_t ngx_http_js_ext_r
{
.flags = NJS_EXTERN_PROPERTY,
- .name.string = njs_str("requestBody"),
- .u.property = {
- .handler = ngx_http_js_ext_get_request_body,
- .magic32 = NGX_JS_STRING | NGX_JS_DEPRECATED,
- }
- },
-
- {
- .flags = NJS_EXTERN_PROPERTY,
.name.string = njs_str("requestBuffer"),
.u.property = {
.handler = ngx_http_js_ext_get_request_body,
@@ -631,15 +622,6 @@ static njs_external_t ngx_http_js_ext_r
{
.flags = NJS_EXTERN_PROPERTY,
- .name.string = njs_str("responseBody"),
- .u.property = {
- .handler = ngx_http_js_ext_get_response_body,
- .magic32 = NGX_JS_STRING | NGX_JS_DEPRECATED,
- }
- },
-
- {
- .flags = NJS_EXTERN_PROPERTY,
.name.string = njs_str("responseBuffer"),
.u.property = {
.handler = ngx_http_js_ext_get_response_body,
@@ -2604,10 +2586,6 @@ ngx_http_js_ext_get_request_body(njs_vm_
ngx_http_js_ctx_t *ctx;
ngx_http_request_t *r;
- if (njs_vm_prop_magic32(prop) & NGX_JS_DEPRECATED) {
- njs_deprecated(vm, "r.requestBody");
- }
-
r = njs_vm_external(vm, ngx_http_js_request_proto_id, value);
if (r == NULL) {
njs_value_undefined_set(retval);
@@ -3455,10 +3433,6 @@ ngx_http_js_ext_get_response_body(njs_vm
ngx_http_js_ctx_t *ctx;
ngx_http_request_t *r;
- if (njs_vm_prop_magic32(prop) & NGX_JS_DEPRECATED) {
- njs_deprecated(vm, "r.responseBody");
- }
-
r = njs_vm_external(vm, ngx_http_js_request_proto_id, value);
if (r == NULL) {
njs_value_undefined_set(retval);
More information about the nginx-devel
mailing list