获取uri
local request_uri = ngx.var.request_uri;
获取cookie内容
local user_id = ngx.var.cookie_userId
从header中取值
local token = ngx.req.get_headers()[“token”]
local request_uri = ngx.var.request_uri;
local user_id = ngx.var.cookie_userId
local token = ngx.req.get_headers()[“token”]