(self)
| 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") |
| 167 | with self.assertRaises(SecurityError): |
| 168 | await read_headers(self.stream) |
| 169 | |
| 170 | async def test_line_limit(self): |
| 171 | # Header line contains 5 + 8186 + 2 = 8193 bytes. |
nothing calls this directly
no test coverage detected