MCPcopy Create free account
hub / github.com/python-websockets/websockets / test_header_value

Method test_header_value

tests/legacy/test_http.py:160–163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 await read_headers(self.stream)
159
160 async def test_header_value(self):
161 self.stream.feed_data(b"foo: \x00\x00\x0f\r\n\r\n")
162 with self.assertRaises(ValueError):
163 await read_headers(self.stream)
164
165 async def test_headers_limit(self):
166 self.stream.feed_data(b"foo: bar\r\n" * 129 + b"\r\n")

Callers

nothing calls this directly

Calls 2

read_headersFunction · 0.90
feed_dataMethod · 0.45

Tested by

no test coverage detected