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

Method prepare

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

Source from the content-addressed store, hash-verified

39
40 @asyncio.coroutine
41 def prepare(self, request):
42 # make pre-check to don't hide it by do_handshake() exceptions
43 resp_impl = self._start_pre_check(request)
44 if resp_impl is not None:
45 return resp_impl
46
47 parser, protocol, writer = self._pre_start(request)
48 resp_impl = yield from super().prepare(request)
49 self._post_start(request, parser, protocol, writer)
50 return resp_impl
51
52 def _pre_start(self, request):
53 try:

Callers 15

handlerMethod · 0.95
goMethod · 0.95
test_send_str_closedMethod · 0.95
test_ping_closedMethod · 0.95
test_pong_closedMethod · 0.95
test_close_idempotentMethod · 0.95

Calls 3

_pre_startMethod · 0.95
_post_startMethod · 0.95
_start_pre_checkMethod · 0.80

Tested by 15

handlerMethod · 0.76
goMethod · 0.76
test_send_str_closedMethod · 0.76
test_ping_closedMethod · 0.76
test_pong_closedMethod · 0.76
test_close_idempotentMethod · 0.76