nginx njs 0.7.7发布

最近nginx njs 模块发布了0.77 版本了有一些新特性

新特性

  • nginx 模块 
    njs 对于 http 以及stream 能力的扩展,js_import ,js_path ,js_set , js_var 支持server 以及location context了 (server 不支持) 
    添加了r.internal 属性 
    js_content ,js_body_filter ,js_header_filter 支持在if context 中
  • core 部分 
    fs 模块扩展,支持同步以及promise 模式的读写

说明

目前来说njs 是不错,但是暂时达不到类似lua 模块的惊艳,如果能更好的支持npm 模块就特别好了,nginx 扩展就很方便了
同时我也构建了一个njs 镜像,大家可以测试使用dalongrong/openresty-tengine:debug-njs 包含的perf 的是dalongrong/openresty-tengine:debug-njs-perf

参考资料

https://nginx.org/
https://nginx.org/en/docs/njs/changes.html#njs0.7.7

posted on   荣锋亮  阅读(369)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2021-09-03 通过字节码修改解决dremio 17 以及以上版本s3 plugin 不能create table 问题
2021-09-03 dremio 17 混合类型的问题
2021-09-03 jackson jsonlines 处理-读取以及生成
2021-09-03 dremio 18 预览版发布了
2020-09-03 arkproxy极数云舟开源的完全兼容mysql 的跨云中间件
2020-09-03 Update MongoDB field using value of another field
2019-09-03 使用openrc 管理容器中的服务

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示