Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Tests: removed leftover engine checks. | Dmitry Volyntsev | 2025-05-22 |
| | |||
* | Fetch: QuickJS support. | Zhidao HONG | 2025-05-09 |
| | |||
* | Tests: making fetch test portable by removing njs.dump(). | Dmitry Volyntsev | 2025-02-24 |
| | |||
* | Modules: introduced QuickJS engine. | Dmitry Volyntsev | 2024-09-17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "js_engine" directive is introduced which sets JavaScript engine. When the module is built with QuickJS library "js_engine qjs;" sets QuickJS engine for the current block. By default njs engine is used. For example, nginx.conf: location /a { js_engine qjs; # will be handled by QuickJS js_content main.handler; } location /b { # will be handled by njs js_content main.handler; } QuickJS engine implements drop-in replacement for nginx/njs objects with the following exceptions: * nginx module API to be added later: ngx.fetch(), ngx.shared.dict. * Built-in modules to be added later: fs, crypto, WebCrypto, xml. * NJS specific API: njs.dump(), njs.on(), console.dump(). * js_preload_object directive. | ||
* | Fetch: fixed Headers.set(). | Dmitry Volyntsev | 2023-11-15 |
| | | | | This closes #680 issue on Github. | ||
* | Fetch: fixed setting of Content-Type header. | Dmitry Volyntsev | 2023-06-22 |
| | | | | | | | | | | Previously, Content-Type was set unconditionally to "text/plain;charset=UTF-8" when fetch request contained a string body. This may overlap with user's Content-Type. The fix is to set the header only if it was not set before. This fixes #654 issue on Github. | ||
* | Tests: removed excessive tab characters from js_fetch_objects.t. | Dmitry Volyntsev | 2023-02-06 |
| | |||
* | Tests: fixed js tests for Fetch API for nginx-1.22 and below. | Dmitry Volyntsev | 2023-02-06 |
| | | | | | The fix is to move a test with multiple headers returned by $http_a variable under an nginx version check. | ||
* | Tests: imported nginx modules tests from nginx-tests. | Dmitry Volyntsev | 2023-05-22 |