こんにちは、鯨井貴博@opensourcetechです。
nginx を Javascriptで拡張できる njs の新バージョン 0.2.2 がリリースされました。
更新履歴は、以下の通りです。
(From njs Changes)
Changes with 0.2.2
Release Date: 19 June 2018
nginx modules:
・Change: merged HTTP Response and Reply into Request. New members of Request:
req.status (res.status)
req.parent (reply.parent)
req.requestBody (req.body)
req.responseBody (reply.body)
req.headersIn (req.headers)
req.headersOut (res.headers)
req.sendHeader() (res.sendHeader())
req.send() (res.send())
req.finish() (res.finish())
req.return() (res.return())
Deprecated members of Request:
req.body (use req.requestBody or req.responseBody)
req.headers (use req.headersIn or req.headersOut)
req.response
The deprecated properties will be removed in next releases.
・Feature: HTTP internalRedirect() method.
Core:
・Bugfix: fixed heap-buffer-overflow in crypto.createHmac().