# HG changeset patch # User Yaroslav Zhuravlev # Date 1551270556 -10800 # Node ID 867fe207f13e568e2051a1c5b8cd6bf57327dd20 # Parent 702e7aaf188febcb2214d433e298c75ea904a1ab Updated links to changes.xml in njs Reference. diff -r 702e7aaf188f -r 867fe207f13e xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Tue Feb 26 18:47:43 2019 +0300 +++ b/xml/en/docs/njs/reference.xml Wed Feb 27 15:29:16 2019 +0300 @@ -221,26 +221,26 @@ s.allow() successfully finalizes the phase handler -(0.2.4) +(0.2.4) s.decline() finalizes the phase handler and passes control to the next handler -(0.2.4) +(0.2.4) s.deny() finalizes the phase handler with the access error code -(0.2.4) +(0.2.4) s.done([code]) successfully finalizes the current phase handler or finalizes it with the specified numeric code -(0.2.4). +(0.2.4). s.error(string) @@ -258,14 +258,14 @@ s.off(eventName) unregisters the callback set by the s.on() method -(0.2.4) +(0.2.4) s.on(event, callback) registers a callback for the specified event -(0.2.4). +(0.2.4). An event may be one of the following strings: @@ -308,7 +308,7 @@ options]) sends the data to the client -(0.2.4). +(0.2.4). The options is an object used to override nginx buffer flags derived from an incoming data chunk buffer. The flags can be overriden with the following flags: @@ -429,7 +429,7 @@ (njs specific) Creates a byte string either from an array that contains octets, or from an encoded string -(0.2.3). +(0.2.3). The encoding can be hex, base64, and @@ -598,7 +598,7 @@ Returns a string of a specified length with the pad string applied to the end of the specified -string (0.2.3). +string (0.2.3). >> '1234'.padEnd(8, 'abcd') '1234abcd' @@ -610,7 +610,7 @@ Returns a string of a specified length with the pad string applied to the start of the specified -string (0.2.3). +string (0.2.3). >> '1234'.padStart(8, 'abcd') 'abcd1234' diff -r 702e7aaf188f -r 867fe207f13e xml/ru/docs/njs/compatibility.xml --- a/xml/ru/docs/njs/compatibility.xml Tue Feb 26 18:47:43 2019 +0300 +++ b/xml/ru/docs/njs/compatibility.xml Wed Feb 27 15:29:16 2019 +0300 @@ -129,9 +129,9 @@ ES8: entries -(0.2.7), +(0.2.7), values -(0.2.7) +(0.2.7) @@ -189,7 +189,7 @@ ES6 синтаксис rest параметров (без поддержки деструктуризации) -(0.2.7) +(0.2.7) diff -r 702e7aaf188f -r 867fe207f13e xml/ru/docs/njs/reference.xml --- a/xml/ru/docs/njs/reference.xml Tue Feb 26 18:47:43 2019 +0300 +++ b/xml/ru/docs/njs/reference.xml Wed Feb 27 15:29:16 2019 +0300 @@ -218,7 +218,7 @@ -До версии njs 0.2.4, +До версии njs 0.2.4, у объекта stream-сессии были некоторые свойства, которые на данный момент удалены. @@ -230,26 +230,26 @@ s.allow() успешно финализирует обработчик фазы -(0.2.4) +(0.2.4) s.decline() финализирует обработчик фазы и передаёт контроль следующему обработчику -(0.2.4) +(0.2.4) s.deny() финализирует обработчик фазы с кодом ошибки доступа -(0.2.4) +(0.2.4) s.done([код]) успешно финализирует текущий обработчик фазы или финализирует его с указанным числовым кодом -(0.2.4). +(0.2.4). s.error(строка) @@ -268,14 +268,14 @@ отменяет регистрацию callback'а, установленного методом s.on() -(0.2.4) +(0.2.4) s.on(событие, callback) регистрирует callback для указанного события -(0.2.4). +(0.2.4). Событием может являться одна из следующих строк: @@ -319,7 +319,7 @@ параметры]) отправляет данные клиенту -(0.2.4). +(0.2.4). Параметры являются объектом, используемым для переопределения флагов буфера nginx, полученных из буфера входных данных. @@ -416,7 +416,7 @@ (только в njs) Создаёт байтовую строку или из массива, содержащего октеты, или из кодированной строки -(0.2.3). +(0.2.3). Кодировкой может быть hex, base64 и @@ -587,7 +587,7 @@ Возвращает строку указанной длины, добавляя строку в конец указанной -строки (0.2.3). +строки (0.2.3). >> '1234'.padEnd(8, 'abcd') '1234abcd' @@ -599,7 +599,7 @@ Возвращает строку указанной длины, добавляя строку к началу указанной -строки (0.2.3). +строки (0.2.3). >> '1234'.padStart(8, 'abcd') 'abcd1234'