Skip to content

Commit 4572b8d

Browse files
committed
update from Atlas
1 parent d9e8f44 commit 4572b8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

17-futures/countries/README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
=====================================================
2-
Setting up Nginx and Vaurien for testing HTTP clients
3-
=====================================================
1+
============================
2+
Setting up Nginx and Vaurien
3+
============================
44

55
This text explains how to configure Nginx and Vaurien to test HTTP client code while avoiding network traffic and introducing simulated delays and errors. This setup is necessary if you want to experiment with the image download examples in chapters 17 and 18 of Fluent Python.
66

@@ -14,7 +14,7 @@ For this setup I chose Nginx as the HTTP server because it is very fast and easy
1414

1515
The archive ``countries/flags.zip``, contains a directory ``flags/`` with 194 subdirectories, each containing a ``.gif`` image and a ``metadata.json`` file. These are public-domain images copied from the `CIA World Fact Book <https://www.cia.gov/library/publications/the-world-factbook/>`_.
1616

17-
Once these files are unpacked to the ``flags/`` directory and Nginx is configured, you can experiment with the ``flags*.py``examples without hitting the network.
17+
Once these files are unpacked to the ``flags/`` directory and Nginx is configured, you can experiment with the ``flags*.py`` examples without hitting the network.
1818

1919

2020
Procedure
@@ -88,7 +88,7 @@ Most of the content in ``nginx.conf`` is within a block labeled ``http`` and enc
8888
}
8989

9090

91-
After editing ``nginx.conf`` the server must be started (if it's not running) or told to reload the configuration file:
91+
After editing ``nginx.conf`` the server must be started (if it's not running) or told to reload the configuration file::
9292

9393

9494
$ nginx # to start, if necessary
@@ -161,7 +161,7 @@ Platform-specific instructions
161161
Nginx setup on Mac OS X
162162
------------------------
163163

164-
Homebrew (copy & paste code at the bottom of http://brew.sh/):
164+
Homebrew (copy & paste code at the bottom of http://brew.sh/)::
165165

166166

167167
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

0 commit comments

Comments
 (0)