lua里面有时候要去请求外面的链接,试过了几种方式,发现这个方式性能最佳
location /set {
default_type 'text/html';
proxy_set_header Host test.yufei.com;
proxy_connect_timeout 5s;
proxy_send_timeout 3s;
proxy_read_timeout 3s;
proxy_pass http://test.yufei.com/api?a=$aaa&b=$bbb;
}
location /change {
set $a '';
set $b '&