aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-10-09 08:56:30 +0300
committerFilipp Lepalaan <filipp@mac.com>2018-10-09 08:56:30 +0300
commite6056c56316bb38eed69c366e346f1eeae979b9b (patch)
tree292cdd391297ceca28313221b67c442f3c48fdef /README.md
parentf438b1221354469a9ce50f591eba7272f2698526 (diff)
downloadgsx-mockserver-e6056c56316bb38eed69c366e346f1eeae979b9b.tar.gz
gsx-mockserver-e6056c56316bb38eed69c366e346f1eeae979b9b.tar.bz2
gsx-mockserver-e6056c56316bb38eed69c366e346f1eeae979b9b.zip
Add option to throttle responses
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index e726f77..76be9bf 100644
--- a/README.md
+++ b/README.md
@@ -9,14 +9,15 @@ The mock responses are collected from example XML snippets in Apple's [API docum
Installation
============
-The server has only one external dependency - `lxml` which is used to parse the request XML. It should work with both Python 3 and 2, but is primarily developed and tested on 3.
+The server requires Python 3 and has only one external dependency - `lxml` which is used to parse the request XML.
$ pip install lxml
$ python serve.py
Validating XML responses...
GSX mock server serving on http://localhost:8080
-You can also specify the port and address to serve on with the `-p` and `-a` arguments - check `-h` for the details.
+You can also specify the port and address to serve on with the `-p` and `-a` arguments - check `-h` for the details. Use the `GSX_THROTTLE=X` environment
+variable to add a X-second delay to each API response.
Usage
=====