You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
6
6
@@ -14,7 +14,7 @@ For this setup I chose Nginx as the HTTP server because it is very fast and easy
14
14
15
15
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/>`_.
16
16
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.
18
18
19
19
20
20
Procedure
@@ -88,7 +88,7 @@ Most of the content in ``nginx.conf`` is within a block labeled ``http`` and enc
88
88
}
89
89
90
90
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::
0 commit comments