MCPcopy
hub / github.com/tornadoweb/tornado / get

Method get

tornado/test/curl_httpclient_test.py:176–182  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174
175class ClientCertEchoHandler(RequestHandler):
176 def get(self):
177 cert = self.request.get_ssl_certificate()
178 if cert is not None:
179 assert isinstance(cert, dict)
180 self.write(f"client cert: {cert['subject']}")
181 else:
182 self.write("no client cert")
183
184
185@unittest.skipIf(pycurl is None, "pycurl module not present")

Callers

nothing calls this directly

Calls 2

get_ssl_certificateMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected