Welcome! Log In Create A New Profile

Advanced

[njs] Change: removed deprecated r.requestBody and r.responseBody.

Dmitry Volyntsev
May 18, 2023 12:52AM
details: https://hg.nginx.org/njs/rev/ce344efc8b46
branches:
changeset: 2121:ce344efc8b46
user: Dmitry Volyntsev <xeioex@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);
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Change: removed deprecated r.requestBody and r.responseBody.

Dmitry Volyntsev 206 May 18, 2023 12:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 108
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready