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

Method post

python/examples/client_http.py:86–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84
85 @coroutine
86 def post(self):
87 response = yield self.client.request(self.get_body_argument("message"))
88 self.set_header("Content-Type", "text/html")
89 self._write_open()
90 self._write_form()
91 self.write("Response: " + response)
92 self._write_close()
93
94 def _write_open(self):
95 self.write('<html><body>')

Callers

nothing calls this directly

Calls 5

_write_openMethod · 0.95
_write_formMethod · 0.95
_write_closeMethod · 0.95
requestMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected