MCPcopy Create free account
hub / github.com/apache/qpid-proton / on_message

Method on_message

python/examples/client_http.py:54–59  ·  view source on GitHub ↗
(self, event)

Source from the content-addressed store, hash-verified

52 self.do_request()
53
54 def on_message(self, event):
55 if self.sent:
56 request, future = self.sent.pop(0)
57 print("%s => %s" % (request, event.message.body))
58 future.set_result(event.message.body)
59 self.do_request()
60
61 def do_request(self):
62 if self.pending and self.reply_address and self.sender.credit:

Callers

nothing calls this directly

Calls 3

do_requestMethod · 0.95
printFunction · 0.85
popMethod · 0.45

Tested by

no test coverage detected