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

Method feed_data

aiohttp/streams.py:418–426  ·  aiohttp/streams.py::DataQueue.feed_data
(self, data, size=0)

Source from the content-addressed store, hash-verified

416 waiter.set_exception(exc)
417
418 def feed_data(self, data, size=0):
419 self._size += size
420 self._buffer.append((data, size))
421
422 waiter = self._waiter
423 if waiter is not None:
424 self._waiter = None
425 if not waiter.cancelled():
426 waiter.set_result(True)
427
428 def feed_eof(self):
429 self._eof = True

Callers 15

test_POST_DataQueueMethod · 0.95
test_data_queue_itemsFunction · 0.95
feed_dataMethod · 0.45
feed_dataMethod · 0.45
WebSocketParserFunction · 0.45
test_at_eofMethod · 0.45
test_feed_empty_dataMethod · 0.45
test_read_zeroMethod · 0.45
cbMethod · 0.45
test_read_line_breaksMethod · 0.45
test_read_exceptionMethod · 0.45

Calls 1

appendMethod · 0.80

Tested by 15

test_POST_DataQueueMethod · 0.76
test_data_queue_itemsFunction · 0.76
test_at_eofMethod · 0.36
test_feed_empty_dataMethod · 0.36
test_read_zeroMethod · 0.36
cbMethod · 0.36
test_read_line_breaksMethod · 0.36
test_read_exceptionMethod · 0.36
test_readlineMethod · 0.36