update from Atlas
This commit is contained in:
parent
4572b8dfbe
commit
57902d31b5
@ -2,7 +2,7 @@
|
||||
Setting up Nginx and Vaurien
|
||||
============================
|
||||
|
||||
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.
|
||||
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 ``flags2*.py`` image download examples in this directory -- covered in chapters 17 and 18 of Fluent Python.
|
||||
|
||||
|
||||
Overview
|
||||
@ -12,9 +12,9 @@ The flag download examples are designed to compare the performance of different
|
||||
|
||||
For this setup I chose Nginx as the HTTP server because it is very fast and easy to configure, and the Vaurien proxy because it was designed by Mozilla to introduce delays and network errors for testing Web services.
|
||||
|
||||
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/>`_.
|
||||
The archive ``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/>`_.
|
||||
|
||||
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.
|
||||
Once these files are unpacked to the ``flags/`` directory and Nginx is configured, you can experiment with the ``flags2*.py`` examples without hitting the network.
|
||||
|
||||
|
||||
Procedure
|
||||
|
Loading…
x
Reference in New Issue
Block a user