MCPcopy
hub / github.com/aio-libs/aiohttp / start

Method start

aiohttp/web_ws.py:79–89  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

77 self._loop = request.app.loop
78
79 def start(self, request):
80 warnings.warn('use .prepare(request) instead', DeprecationWarning)
81 # make pre-check to don't hide it by do_handshake() exceptions
82 resp_impl = self._start_pre_check(request)
83 if resp_impl is not None:
84 return resp_impl
85
86 parser, protocol, writer = self._pre_start(request)
87 resp_impl = super().start(request)
88 self._post_start(request, parser, protocol, writer)
89 return resp_impl
90
91 def can_prepare(self, request):
92 if self._writer is not None:

Callers 4

_requestMethod · 0.45
_create_connectionMethod · 0.45
run_serverFunction · 0.45

Calls 3

_pre_startMethod · 0.95
_post_startMethod · 0.95
_start_pre_checkMethod · 0.80

Tested by 2

run_serverFunction · 0.36