Kong Gateway (OSS)
2.1.x
Maybe you were looking for the Kong Gateway (Enterprise) documentation
instead?
You are browsing documentation for an outdated version. See the
latest documentation here.
kong.nginx
kong.nginx
Nginx information module A set of functions allowing to retrieve Nginx-specific implementation details and meta information.
kong.nginx.get_subsystem()
Returns the current Nginx subsystem this function is called from: “http” or “stream”.
Phases
- any
Returns
string
subsystem Either"http"
or"stream"
Usage
1
kong.nginx.get_subsystem() -- "http"