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

Method feed

gunicorn/asgi/protocol.py:187–191  ·  view source on GitHub ↗

Feed a body chunk directly (called by parser callback).

(self, chunk)

Source from the content-addressed store, hash-verified

185 self._waiter = None
186
187 def feed(self, chunk):
188 """Feed a body chunk directly (called by parser callback)."""
189 if chunk:
190 self._chunks.append(chunk)
191 self._wake_waiter()
192
193 def set_complete(self):
194 """Mark body as complete (called when message ends)."""

Calls 1

_wake_waiterMethod · 0.95