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

Method __init__

aiohttp/web_reqrep.py:413–431  ·  view source on GitHub ↗
(self, *, status=200, reason=None, headers=None)

Source from the content-addressed store, hash-verified

411class StreamResponse(HeadersMixin):
412
413 def __init__(self, *, status=200, reason=None, headers=None):
414 self._body = None
415 self._keep_alive = None
416 self._chunked = False
417 self._chunk_size = None
418 self._compression = False
419 self._compression_force = False
420 self._headers = CIMultiDict()
421 self._cookies = http.cookies.SimpleCookie()
422 self.set_status(status, reason)
423
424 self._req = None
425 self._resp_impl = None
426 self._eof_sent = False
427 self._tcp_nodelay = True
428 self._tcp_cork = False
429
430 if headers is not None:
431 self._headers.extend(headers)
432
433 def _copy_cookies(self):
434 for cookie in self._cookies.values():

Callers

nothing calls this directly

Calls 2

set_statusMethod · 0.95
extendMethod · 0.80

Tested by

no test coverage detected