comparison xml/en/docs/njs/njs_changes.xml @ 2184:61b02846de24

Added release notes for njs 0.2.2.
author Yaroslav Zhuravlev <yar@nginx.com>
date Tue, 19 Jun 2018 15:43:45 +0300
parents 65fc7e90b849
children b91e766acbd4
comparison
equal deleted inserted replaced
2183:97526b8346f4 2184:61b02846de24
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
8 8
9 <article name="njs Changes" 9 <article name="njs Changes"
10 link="/en/docs/njs/njs_changes.html" 10 link="/en/docs/njs/njs_changes.html"
11 lang="en" 11 lang="en"
12 rev="3" 12 rev="4"
13 toc="no"> 13 toc="no">
14
15 <section id="njs0.2.2" name="Changes with 0.2.2">
16
17 <para>
18 Release Date:
19 19 June 2018
20 </para>
21
22 <para>
23 nginx modules:
24 <list type="bullet">
25
26 <listitem>
27 <para>
28 Change:
29 merged HTTP <literal>Response</literal> and <literal>Reply</literal>
30 into <link doc="njs_api.xml" id="http_request">Request</link>.
31 New members of <literal>Request</literal>:
32
33 <list type="bullet">
34
35 <listitem>
36 <para>
37 <literal>req.status</literal> (<literal>res.status</literal>)
38 </para>
39 </listitem>
40
41 <listitem>
42 <para>
43 <literal>req.parent</literal> (<literal>reply.parent</literal>)
44 </para>
45 </listitem>
46
47 <listitem>
48 <para>
49 <literal>req.requestBody</literal> (<literal>req.body</literal>)
50 </para>
51 </listitem>
52
53 <listitem>
54 <para>
55 <literal>req.responseBody</literal> (<literal>reply.body</literal>)
56 </para>
57 </listitem>
58
59 <listitem>
60 <para>
61 <literal>req.headersIn</literal> (<literal>req.headers</literal>)
62 </para>
63 </listitem>
64
65 <listitem>
66 <para>
67 <literal>req.headersOut</literal> (<literal>res.headers</literal>)
68 </para>
69 </listitem>
70
71 <listitem>
72 <para>
73 <literal>req.sendHeader()</literal> (<literal>res.sendHeader()</literal>)
74 </para>
75 </listitem>
76
77 <listitem>
78 <para>
79 <literal>req.send()</literal> (<literal>res.send()</literal>)
80 </para>
81 </listitem>
82
83 <listitem>
84 <para>
85 <literal>req.finish()</literal> (<literal>res.finish()</literal>)
86 </para>
87 </listitem>
88
89 <listitem>
90 <para>
91 <literal>req.return()</literal> (<literal>res.return()</literal>)
92 </para>
93 </listitem>
94
95 </list>
96 Deprecated members of <literal>Request</literal>:
97
98 <list type="bullet">
99
100 <listitem>
101 <para>
102 <literal>req.body</literal> (use <literal>req.requestBody</literal>
103 or <literal>req.responseBody</literal>)
104 </para>
105 </listitem>
106
107 <listitem>
108 <para>
109 <literal>req.headers</literal> (use <literal>req.headersIn</literal>
110 or <literal>req.headersOut</literal>)
111 </para>
112 </listitem>
113
114 <listitem>
115 <para>
116 <literal>req.response</literal>
117 </para>
118 </listitem>
119
120 </list>
121 The deprecated properties will be removed in next releases.
122 </para>
123 </listitem>
124
125 <listitem>
126 <para>
127 Feature:
128 HTTP <link doc="njs_api.xml" id="r_internal_redirect">internalRedirect()</link>
129 method.
130 </para>
131 </listitem>
132
133 </list>
134 </para>
135
136 <para>
137 Core:
138 <list type="bullet">
139
140 <listitem>
141 <para>
142 Bugfix:
143 fixed heap-buffer-overflow in <literal>crypto.createHmac()</literal>.
144 </para>
145 </listitem>
146
147 </list>
148 </para>
149
150 </section>
151
14 152
15 <section id="njs0.2.1" name="Changes with 0.2.1"> 153 <section id="njs0.2.1" name="Changes with 0.2.1">
16 154
17 <para> 155 <para>
18 Release Date: 156 Release Date: