Browse code

xhttp: added section for event route in the docs

Daniel-Constantin Mierla authored on 19/04/2017 07:30:46
Showing 1 changed files
... ...
@@ -207,5 +207,25 @@ event_route[xhttp:request] {
207 207
 	    </example>
208 208
 	</section>
209 209
 	</section>
210
+
211
+    <section>
212
+    <title>Event Routes</title>
213
+    <section id="xhttp.evr.request">
214
+        <title>
215
+        <function moreinfo="none">xhttp:request</function>
216
+        </title>
217
+        <para>
218
+			The event route is executed when a new HTTP request is received.
219
+        </para>
220
+        <programlisting  format="linespecific">
221
+...
222
+event_route[xhttp:request] {
223
+    xhttp_reply("200", "OK", "text/html",
224
+        "&lt;html&gt;&lt;body&gt;OK - [$si:$sp]&lt;/body&gt;&lt;/html&gt;");
225
+}
226
+...
227
+        </programlisting>
228
+	</section>
229
+	</section>
210 230
 </chapter>
211 231