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

Method _start_pre_check

aiohttp/web_reqrep.py:654–662  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

652 self.headers[CONTENT_TYPE] = ctype
653
654 def _start_pre_check(self, request):
655 if self._resp_impl is not None:
656 if self._req is not request:
657 raise RuntimeError(
658 'Response has been started with different request.')
659 else:
660 return self._resp_impl
661 else:
662 return None
663
664 def _do_start_compression(self, coding):
665 if coding != ContentCoding.identity:

Callers 4

startMethod · 0.95
prepareMethod · 0.95
prepareMethod · 0.80
startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected