Lines Matching refs:response
7 # the marshalling and response parser code can also be used to
25 # 2001-03-28 fl Make sure response tuple is a singleton
92 The marshalling and response parser code can also be used to
99 ResponseError Indicates a broken response package
113 Unmarshaller Unmarshal an XML-RPC response from incoming XML event message
126 request (or response, if the methodresponse option is used).
216 # Indicates a broken XML-RPC response package. This exception is
217 # raised by the unmarshalling layer, if the XML-RPC response is
221 """Indicates a broken response package."""
225 # Indicates an XML-RPC fault response package. This exception is
226 # raised by the unmarshalling layer, if the XML-RPC response contains
477 to an XML-RPC params chunk. To write a fault response, pass a
640 """Unmarshal an XML-RPC response, based on incoming XML event
664 # return response tuple and target method
846 raised in response to xmlrpc faults."""
949 request (or response, if the methodresponse option is used).
971 assert len(params) == 1, "response tuple must be a singleton"
999 # a method response, or a fault structure
1088 # @param response A stream supporting a read() method
1092 """a file-like object to decode a response encoded with the gzip
1095 def __init__(self, response):
1096 #response doesn't support tell() and read(), required by
1100 self.io = BytesIO(response.read())
1153 # Send a complete request, and parse the response.
1160 # @return Parsed response.
1192 #We got an error response.
1193 #Discard any response data and raise exception
1324 # Parse response.
1329 def parse_response(self, response):
1330 # read response data from httpresponse, and parse it
1331 # Check for new http response object, otherwise it is a file object.
1332 if hasattr(response, 'getheader'):
1333 if response.getheader("Content-Encoding", "") == "gzip":
1334 stream = GzipDecodedResponse(response)
1336 stream = response
1338 stream = response
1350 if stream is not response:
1464 response = self.__transport.request(
1471 if len(response) == 1:
1472 response = response[0]
1474 return response
1529 for response in multi():
1530 print(response)