(self)
| 168 | await read_headers(self.stream) |
| 169 | |
| 170 | async def test_line_limit(self): |
| 171 | # Header line contains 5 + 8186 + 2 = 8193 bytes. |
| 172 | self.stream.feed_data(b"foo: " + b"a" * 8186 + b"\r\n\r\n") |
| 173 | with self.assertRaises(SecurityError): |
| 174 | await read_headers(self.stream) |
| 175 | |
| 176 | async def test_line_ending(self): |
| 177 | self.stream.feed_data(b"foo: bar\n\n") |
nothing calls this directly
no test coverage detected