主
- 该模块已包含在内
ngx_stream_set_module ,它允许您为变量赋值服务器{
听12345;
设置 $true 1;
} - 添加指令
proxy_cookie_flags 为代理连接中的 Cookie 指定标志。 例如,要将“httponly”标志添加到 Cookie“one”,并为所有其他 Cookie 添加“nosecure”和“samesite=strict”标志,您可以使用以下结构:proxy_cookie_flags XNUMX httponly;
proxy_cookie_flags ~ nosecure Samesite=strict; - 类似指令
用户标识标志 ngx_http_userid 模块还实现了向 Cookie 添加标志的功能。
同时
- 添加了对数字中数字的视觉分离的支持(例如“1_000”)。
- 为 %TypedArray%.prototype 实现了缺失的方法: every()、filter()、find()、findIndex()、forEach()、includes()、indexOf()、lastIndexOf()、map()、reduce()、 reduceRight()、reverse()、some()。
- 为 %TypedArray% 实现了缺失的方法:from()、of()。
- 实现了 DataView 对象。
: >> (new DataView(buf.buffer)).getUint16()
:32974 - 实现了 Buffer 对象。
: >> var buf = Buffer.from([0x80,206,177,206,178])
: 不明确的
: >> buf.slice(1).toString()
: 'αβ'
: >> buf.toString('base64')
: 'gM6xzrI=' - 为“crypto”和“fs”方法添加了 Buffer 对象支持,并确保 fs.readFile()、Hash.prototype.digest() 和 Hmac.prototype.digest() 返回 Buffer 对象的实例。
- TextDecoder.prototype.decode() 方法中添加了 ArrayBuffer 支持。
来源: opennet.ru