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

Method handle_request

pywebio/platform/adaptor/http.py:218–226  ·  view source on GitHub ↗
(self, context: HttpContext)

Source from the content-addressed store, hash-verified

216 cls._remove_expired_sessions(self.session_expire_seconds)
217
218 def handle_request(self, context: HttpContext):
219 try:
220 with self.handle_request_context(context) as sleep_dur:
221 if sleep_dur:
222 time.sleep(sleep_dur)
223 except RuntimeError:
224 pass
225
226 return context.get_response()
227
228 async def handle_request_async(self, context: HttpContext):
229 try:

Callers 3

view_funcFunction · 0.80
view_funcFunction · 0.80
getMethod · 0.80

Calls 2

get_responseMethod · 0.45

Tested by

no test coverage detected