$var shorthand |
No shorthand | |
|---|---|---|
| Syntax | '$uri.toUpperCase()' |
'r.uri.toUpperCase()' |
| Expands to | r.variables.uri.toUpperCase() |
used as-is |
| nginx-idiomatic | Yes — familiar $var references |
No — pure JS, foreign to nginx users |
| Access scope | r.variables.* only |
Full request object (r.uri, r.headersIn, r.args, etc.) |
$var shorthand |
No shorthand | |
|---|---|---|
| Syntax | '$uri.toUpperCase()' |
'r.uri.toUpperCase()' |
| Expands to | r.variables.uri.toUpperCase() |
used as-is |
| nginx-idiomatic | Yes — familiar $var references |
No — pure JS, foreign to nginx users |
| Access scope | r.variables.* only |
Full request object (r.uri, r.headersIn, r.args, etc.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _mcp_messages = []; | |
| var _mcp_buffer = ""; | |
| function clear_content_length(r) { | |
| delete r.headersOut['Content-Length']; | |
| } | |
| function filter(r, data, flags) { | |
| _mcp_buffer += data; | |
| r.sendBuffer(data, flags); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bufio" | |
| "bytes" | |
| "context" | |
| "crypto/rand" | |
| "encoding/json" | |
| "flag" | |
| "fmt" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /tmp/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/aaaaaaaaaaa |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/examples/t/async_request.t b/examples/t/async_request.t | |
| index 3d09ddd5..88b1e37e 100644 | |
| --- a/examples/t/async_request.t | |
| +++ b/examples/t/async_request.t | |
| @@ -21,7 +21,7 @@ use Test::Nginx; | |
| select STDERR; $| = 1; | |
| select STDOUT; $| = 1; | |
| -my $t = Test::Nginx->new()->has(qw/http/)->plan(1) | |
| +my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit d5fae2e1ccc37de58573e4961958e82cf8d6d6b2 | |
| Author: Dmitry Volyntsev <xeioex@nginx.com> | |
| Date: Fri Jan 30 17:43:17 2026 -0800 | |
| Attaching JS stack trace for exceptions thrown by C code. | |
| This fixes #1019 issue on Github. | |
| diff --git a/nginx/t/js_fetch_error_stack.t b/nginx/t/js_fetch_error_stack.t | |
| new file mode 100644 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/auto/cc b/auto/cc | |
| index 5b21e17e..d2ce8f89 100644 | |
| --- a/auto/cc | |
| +++ b/auto/cc | |
| @@ -169,6 +169,20 @@ case $NJS_CC_NAME in | |
| esac | |
| +njs_feature="-Wl,-E" | |
| +njs_feature_name= |
NewerOlder