capture_multi different headers

26 views
Skip to first unread message

Nicolas Adrian

unread,
Dec 7, 2021, 5:14:03 AM12/7/21
to openresty-en
Is there a way to use ngx.location.capture_multi and set different headers for each subrequests ?

Junlong li

unread,
Dec 8, 2021, 6:24:51 AM12/8/21
to openresty-en
do not support now.

Nicolas Adrian

unread,
Dec 8, 2021, 7:26:07 AM12/8/21
to openresty-en
I eventually decided to use the ngx.thread API to spawn threads to handle ngx.location.capture and setting the headers each time. Is this the optimal way to do it ?
Reply all
Reply to author
Forward
0 new messages