# HG changeset patch # User Yaroslav Zhuravlev # Date 1614875880 0 # Node ID 2085eb3156729c673960ffd11add387c9e5b0adb # Parent 68c0566a375fd6a094f7e0f72c953aa0278b34fc Updated description of s.send in njs Reference. 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="65">
@@ -577,14 +577,18 @@ writable s.send(data[, options]) -sends the data to the client +adds data to the chain of data chunks that will be forwarded in +the forward direction: +in download callback to a client; in upload to an upstream server (0.2.4). +The actual forwarding happens later, +when the all the data chunks of the current chain are processed. + The data can be a string or Buffer (0.5.0). The options is an object used to override nginx buffer flags derived from an incoming data chunk buffer. The flags can be overridden with the following flags: - last