MCPcopy
hub / github.com/benoitc/gunicorn / read_into

Method read_into

gunicorn/http/message.py:603–610  ·  view source on GitHub ↗

Read data from unreader and append to bytearray buffer.

(self, unreader, buf, stop=False)

Source from the content-addressed store, hash-verified

601 return ret
602
603 def read_into(self, unreader, buf, stop=False):
604 """Read data from unreader and append to bytearray buffer."""
605 data = unreader.read()
606 if not data:
607 if stop:
608 raise StopIteration()
609 raise NoMoreData(bytes(buf))
610 buf.extend(data)
611
612 def read_line(self, unreader, buf, limit=0):
613 """Read a line from buffer, returning (line, remaining_buffer)."""

Callers 8

parseMethod · 0.95
_parse_fastMethod · 0.95
_parse_pythonMethod · 0.95
read_lineMethod · 0.95
read_bytesMethod · 0.95

Calls 2

NoMoreDataClass · 0.90
readMethod · 0.45

Tested by

no test coverage detected