# HG changeset patch # User Yaroslav Zhuravlev # Date 1596731911 -3600 # Node ID 63cef7604e0d1a8a7a9cf478fdb151e685a94284 # Parent fafb7767c1284f31423331b368dda55b6b80801b Minor review of njs Reference for typos and style. diff --git a/xml/en/docs/njs/reference.xml b/xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml +++ b/xml/en/docs/njs/reference.xml @@ -9,7 +9,7 @@
+ rev="50">
@@ -316,7 +316,8 @@ if true, the created Responses to detached subrequests are ignored. Unlike ordinary subrequests, a detached subrequest can be created inside a variable handler. -The detached flag and callback argument are mutually exclusive. +The detached flag and callback argument +are mutually exclusive. @@ -346,8 +347,8 @@ read-only r.variables{} -nginx variables object, -writable (since 0.2.8) +nginx variables object, writable +(since 0.2.8) r.warn(string) @@ -420,7 +421,8 @@ unregisters the callback set by the s.on(event, callback) -registers a callback for the specified event +registers a callback +for the specified event (0.2.4). @@ -467,18 +469,20 @@ sends the data to the client (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: +The flags can be overridden with the following flags: last -boolean, true if the buffer is the last buffer +boolean, +true if the buffer is the last buffer flush -boolean, true if the buffer should have the flush flag +boolean, +true if the buffer should have the flush flag @@ -519,7 +523,6 @@ that provides information about the curr (0.3.3). - @@ -638,8 +641,8 @@ into a Unicode string, otherwise null is returned. -String.prototype.toBytes(start[, -end]) +String.prototype.toBytes(start[, +end]) Serializes a Unicode string to a byte string. Returns null if a character larger than 255 is @@ -688,17 +691,18 @@ 4
- clearTimeout(timeout) Cancels a timeout object -created by setTimeout(). +created by setTimeout(). setTimeout(function, -ms[, arg1, argN]) +milliseconds[, +argument1, +argumentN]) Calls a function after a specified number of milliseconds. @@ -754,8 +758,8 @@ The algorithm can be crypto.createHmac(algorithm, secret key) -Creates and returns an HMAC object -that uses the given algorithm and secret key. +Creates and returns an HMAC object that uses +the given algorithm and secret key. The algorithm can be md5, sha1, and @@ -1203,12 +1207,13 @@ If the file does not exist, it will be c -ax+—the same as a+ +ax+—the same as a+ but fails if the file already exists -as—open a file for appending in synchronous mode. +as—open a file for appending +in synchronous mode. If the file does not exist, it will be created