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

Method add_headers

aiohttp/protocol.py:640–643  ·  view source on GitHub ↗

Adds headers to a HTTP message.

(self, *headers)

Source from the content-addressed store, hash-verified

638 self.headers.add(name, value)
639
640 def add_headers(self, *headers):
641 """Adds headers to a HTTP message."""
642 for name, value in headers:
643 self.add_header(name, value)
644
645 def send_headers(self, _sep=': ', _end='\r\n'):
646 """Writes headers to a stream. Constructs payload writer."""

Callers 15

_responseMethod · 0.80
test_add_headersFunction · 0.80
test_add_headers_lengthFunction · 0.80
test_add_headers_upgradeFunction · 0.80
test_send_headersFunction · 0.80
test_prepare_lengthFunction · 0.80

Calls 1

add_headerMethod · 0.95

Tested by 15

_responseMethod · 0.64
test_add_headersFunction · 0.64
test_add_headers_lengthFunction · 0.64
test_add_headers_upgradeFunction · 0.64
test_send_headersFunction · 0.64
test_prepare_lengthFunction · 0.64