kong.nginx
Nginx information module.
A set of functions for retrieving Nginx-specific implementation details and meta information.
kong.nginx.get_subsystem()
Returns the current Nginx subsystem this function is called from. Can be one of "http"
or "stream"
.
Phases
- any
Returns
string
: Subsystem, either"http"
or"stream"
.
Usage
kong.nginx.get_subsystem() -- "http"