Lines Matching refs:_buffer
106 conn._buffer = HeaderCountingBuffer()
113 self.assertEqual(conn._buffer.count[header.lower()], 1)
134 conn._buffer = ContentLengthChecker()
137 conn._buffer.content_length, '0',
150 conn._buffer = ContentLengthChecker()
153 conn._buffer.content_length, None,
163 conn._buffer = ContentLengthChecker()
166 conn._buffer.content_length, '0',
174 conn._buffer = ContentLengthChecker()
177 conn._buffer.content_length, '1',
186 self.assertIn('Content-length: 42', conn._buffer)
189 self.assertIn(b'Foo: bar ', conn._buffer)
191 self.assertIn(b'Bar: \tbaz\t', conn._buffer)
193 self.assertIn(b'Authorization: Bearer mytoken', conn._buffer)
195 self.assertIn(b'IterHeader: IterA\r\n\tIterB', conn._buffer)
197 self.assertIn(b'LatinHeader: \xFF', conn._buffer)
199 self.assertIn(b'Utf8Header: \xc3\x80', conn._buffer)
201 self.assertIn(b'C1-Control: next\x85line', conn._buffer)
203 self.assertIn(b'Embedded-Fold-Space: is\r\n allowed', conn._buffer)
205 self.assertIn(b'Embedded-Fold-Tab: is\r\n\tallowed', conn._buffer)
207 self.assertIn(b'Key Space: value', conn._buffer)
209 self.assertIn(b'KeySpace : value', conn._buffer)
211 self.assertIn(b'Nonbreak\xa0Space: value', conn._buffer)
213 self.assertIn(b'\xa0NonbreakSpace: value', conn._buffer)