You are browsing documentation for an older 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
kong.nginx.get_subsystem() -- "http"