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

Method set_status

aiohttp/web_reqrep.py:463–467  ·  view source on GitHub ↗
(self, status, reason=None)

Source from the content-addressed store, hash-verified

461 return self._reason
462
463 def set_status(self, status, reason=None):
464 self._status = int(status)
465 if reason is None:
466 reason = ResponseImpl.calc_reason(status)
467 self._reason = reason
468
469 @property
470 def keep_alive(self):

Callers 5

__init__Method · 0.95
_pre_startMethod · 0.80
handlerMethod · 0.80
middlewareFunction · 0.80

Calls 1

calc_reasonMethod · 0.80

Tested by 3

handlerMethod · 0.64
middlewareFunction · 0.64