nginx / unit

NGINX Unit - universal web app server - a lightweight and versatile open source server that simplifies the application stack by natively executing application code across eight different programming language runtimes.
https://unit.nginx.org
Apache License 2.0
5.29k stars 325 forks source link

Access all Unit variables from JavaScript #977

Closed lcrilly closed 5 months ago

lcrilly commented 9 months ago

When creating complex configurations with JavaScript expressions or modules, it is often necessary to access specific attributes of the request/response such as cookie values.

Currently, JavaScript has access to a subset of the attributes that Unit provides as variables.

This enhancement is to provide a native method for JavaScript to access all current and future variables that Unit provides.

lcrilly commented 5 months ago

Implemented by https://github.com/nginx/unit/pull/1024

ac000 commented 5 months ago

This has been merged.