This is an automated email from the ASF dual-hosted git repository.

dagit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 9fa8959  README.md for micrserver
9fa8959 is described below

commit 9fa89591543a97557475ade633636adabff5b67e
Author: Persia Aziz <[email protected]>
AuthorDate: Tue Apr 3 14:05:29 2018 -0500

    README.md for micrserver
---
 tests/tools/microServer/README.md | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/tests/tools/microServer/README.md 
b/tests/tools/microServer/README.md
new file mode 100644
index 0000000..0a8fa65
--- /dev/null
+++ b/tests/tools/microServer/README.md
@@ -0,0 +1,31 @@
+uWServer
+========
+
+uWServer is a mock HTTP server that takes predefined set of sessions for 
serving response to HTTP requests. Each session includes one or more 
transactions. A transaction is composed of an HTTP request and an HTTP 
response. 
+uWServer accepts session data in JSON fromat only.
+
+Example session :
+```
+ {"version": "0.1",  
+  "txns": [  
+        {"request": {"headers": "GET /path1\r\n Host: example.com \r\n\r\n", 
"timestamp": "1522783378", "body": "Apache Traffic Server"},     
+        "response": {"headers": "HTTP/1.1\r\n Server: 
microserver\r\nContent-Length:100 \r\n\r\n", "timestamp": "1522783378", "body": 
""},  
+         "uuid": "1"},   
+        {"request": {"headers": "GET /path2\r\n\r\n", "timestamp": 
"1522783378", "body": "Apache Traffic Server"},   
+        "response": {"headers": "HTTP/1.1\r\nTransfer-Encoding: 
chunked\r\n\r\n", "timestamp": "1522783378", "body": "Apache Traffic Server"},  
 
+        "uuid": "2"}  
+  ],   
+  "timestamp": "1522783378",   
+  "encoding": ""}  
+```
+Command:
+----------------
+
+`python3.5 uWServer.py  --data-dir <PATH_TO_SESSION_DIR>`
+
+Options:
+-----------
+
+To see the options please run `python3.5 uWServer.py -h`
+
+

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to