MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / get

Method get

pywebio/platform/tornado.py:122–134  ·  view source on GitHub ↗

http GET request

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

120 return cdn
121
122 async def get(self, *args, **kwargs) -> None:
123 """http GET request"""
124 if self.request.headers.get("Upgrade", "").lower() != "websocket":
125 # Backward compatible
126 # Frontend detect whether the backend is http server
127 if self.get_query_argument('test', ''):
128 return self.write('')
129
130 app = self.get_app()
131 html = render_page(app, protocol='ws', cdn=self.get_cdn())
132 return self.write(html)
133 else:
134 await super().get()
135
136 def check_origin(self, origin):
137 return check_origin_func(origin=origin, handler=self)

Callers 15

send_client_eventMethod · 0.45
get_current_sessionMethod · 0.45
next_client_eventMethod · 0.45
send_client_eventMethod · 0.45
get_task_commandsMethod · 0.45
_cleanupMethod · 0.45
oFunction · 0.45
tFunction · 0.45

Calls 4

get_appMethod · 0.95
get_cdnMethod · 0.95
render_pageFunction · 0.85
get_query_argumentMethod · 0.45

Tested by

no test coverage detected