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

Method get_data

gunicorn/http/message.py:461–467  ·  view source on GitHub ↗
(self, unreader, buf, stop=False)

Source from the content-addressed store, hash-verified

459 super().__init__(cfg, unreader, peer_addr)
460
461 def get_data(self, unreader, buf, stop=False):
462 data = unreader.read()
463 if not data:
464 if stop:
465 raise StopIteration()
466 raise NoMoreData(buf.getvalue())
467 buf.write(data)
468
469 def parse(self, unreader):
470 buf = bytearray()

Callers 1

echoFunction · 0.45

Calls 3

NoMoreDataClass · 0.90
readMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected