Skip to content

Commit 4de40a0

Browse files
committed
Reformatted examples.
1 parent 771d6bd commit 4de40a0

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

README.rst

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ operate at configuration time.
180180
Examples
181181
========
182182

183-
.. _remote_conf_example:
183+
Remote configuration
184+
--------------------
184185

185-
Remote nginx.conf example. This example shows how to load the essential
186-
part of nginx configuration file from a remote server::
186+
Loading the essential part of nginx configuration file from a remote server::
187187

188188
# nginx.conf
189189

@@ -192,7 +192,9 @@ part of nginx configuration file from a remote server::
192192

193193
include /tmp/nginx.conf;
194194

195-
Python variable::
195+
Variables
196+
---------
197+
::
196198

197199
# nginx.conf
198200

@@ -212,8 +214,10 @@ Python variable::
212214
}
213215
}
214216

215-
Python access and content handlers. Dynamic Python module is used in this
216-
example::
217+
Phase handlers
218+
--------------
219+
220+
Dynamic Python module is used in this example::
217221

218222
# nginx.conf
219223

@@ -256,7 +260,9 @@ example::
256260
r.send('1234567890');
257261
r.send('abcdefgefg', ngx.SEND_LAST)
258262

259-
UDP reports in Python::
263+
UDP socket
264+
----------
265+
::
260266

261267
# nginx.conf
262268

@@ -292,7 +298,9 @@ UDP reports in Python::
292298

293299
ds.send(r.var['request'])
294300

295-
Making HTTP requests from Python in runtime::
301+
HTTP request in runtime
302+
-----------------------
303+
::
296304

297305
# nginx.conf
298306

@@ -331,7 +339,9 @@ Making HTTP requests from Python in runtime::
331339
r.ho['x-reason'] = resp.reason;
332340
r.ho['x-body'] = resp.read()
333341

334-
Simple echo server::
342+
Echo server
343+
-----------
344+
::
335345

336346
# nginx.conf
337347

0 commit comments

Comments
 (0)