Lua-nginx-module模块中常用的命令有哪些?

2026-06-05 06:122阅读0评论SEO资源
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计1979个文字,预计阅读时间需要8分钟。

Lua-nginx-module模块中常用的命令有哪些?

nginxngx.location.capture 用法:local res=ngx.location.capture(uri, options)创建一个同步非阻塞的nginx子请求,uri是internal的。返回的res是一个table,索引依次是status(值为number类型)、body(值为string类型)。

ngx.location.capture

用法:

local res = ngx.location.capture(uri, options)

发起一个同步非阻塞的nginx子请求,uri是internal的。

阅读全文

本文共计1979个文字,预计阅读时间需要8分钟。

Lua-nginx-module模块中常用的命令有哪些?

nginxngx.location.capture 用法:local res=ngx.location.capture(uri, options)创建一个同步非阻塞的nginx子请求,uri是internal的。返回的res是一个table,索引依次是status(值为number类型)、body(值为string类型)。

ngx.location.capture

用法:

local res = ngx.location.capture(uri, options)

发起一个同步非阻塞的nginx子请求,uri是internal的。

阅读全文