Skip to content
This repository has been archived by the owner on Dec 17, 2020. It is now read-only.

Commit

Permalink
- added parse_response_headers to allow subclasses to handle header v…
Browse files Browse the repository at this point in the history
…alues if

  needed.
  • Loading branch information
jukart committed Oct 7, 2008
1 parent c62aa22 commit b495b58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ CHANGES
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.
Expand Down
5 changes: 5 additions & 0 deletions src/z3c/json/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def request(self, host, handler, request_body, verbose=0):

self.verbose = verbose

self.parse_response_headers(headers)

try:
sock = h._conn.sock
except AttributeError:
Expand Down Expand Up @@ -170,6 +172,9 @@ def send_content(self, connection, request_body):
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)
Expand Down

0 comments on commit b495b58

Please sign in to comment.