[Checkins] SVN: z3c.json/trunk/ - added parse_response_headers to allow subclasses to handle header values if

Juergen Kartnaller juergen at kartnaller.at
Tue Oct 7 05:22:21 EDT 2008


Log message for revision 91837:
  - added parse_response_headers to allow subclasses to handle header values if
    needed.
  

Changed:
  U   z3c.json/trunk/CHANGES.txt
  U   z3c.json/trunk/src/z3c/json/transport.py

-=-
Modified: z3c.json/trunk/CHANGES.txt
===================================================================
--- z3c.json/trunk/CHANGES.txt	2008-10-07 03:21:17 UTC (rev 91836)
+++ z3c.json/trunk/CHANGES.txt	2008-10-07 09:22:19 UTC (rev 91837)
@@ -5,6 +5,9 @@
 Version 0.5.2dev (unreleased)
 -----------------------------
 
+- added parse_response_headers to allow subclasses to handle header values if
+  needed.
+
 - Implemented JSON-RPC 2.0 specification. Use JSON-RPC 2.0 version as default.
   Optional the version 1.0 and 1.1 can be set. See JSON-RPC 2.0 specification
   for more information.

Modified: z3c.json/trunk/src/z3c/json/transport.py
===================================================================
--- z3c.json/trunk/src/z3c/json/transport.py	2008-10-07 03:21:17 UTC (rev 91836)
+++ z3c.json/trunk/src/z3c/json/transport.py	2008-10-07 09:22:19 UTC (rev 91837)
@@ -103,6 +103,8 @@
 
         self.verbose = verbose
 
+        self.parse_response_headers(headers)
+
         try:
             sock = h._conn.sock
         except AttributeError:
@@ -170,6 +172,9 @@
         if request_body:
             connection.send(request_body)
 
+    def parse_response_headers(self, headers):
+        pass
+
     def parse_response(self, file):
         # compatibility interface
         return self._parse_response(file, None)



More information about the Checkins mailing list