I'm testing some parts of my code which rely on ngx.var.remote_addr. Also I need to fake this value sometimes, like testing a rate limiter in which keys are generated from remote_addr value.
Is there any way to fake the values like ngx.var.remote_addr, ngx.var.host or ... for testing purposes?
Hi.
I'm testing some parts of my code which rely on ngx.var.remote_addr. Also I need to fake this value sometimes, like testing a rate limiter in which keys are generated from remote_addr value.
Is there any way to fake the values like ngx.var.remote_addr, ngx.var.host or ... for testing purposes?