MCPcopy
hub / github.com/scrapy/scrapy / _RequestBodyProducer

Class _RequestBodyProducer

scrapy/core/downloader/handlers/http11.py:601–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599
600@implementer(IBodyProducer)
601class _RequestBodyProducer:
602 def __init__(self, body: bytes):
603 self.body = body
604 self.length = len(body)
605
606 def startProducing(self, consumer: IConsumer) -> Deferred[None]:
607 consumer.write(self.body)
608 return succeed(None)
609
610 def pauseProducing(self) -> None:
611 pass
612
613 def stopProducing(self) -> None:
614 pass
615
616
617class _ResponseReader(Protocol):

Callers 2

get_pageMethod · 0.90
download_requestMethod · 0.85

Calls

no outgoing calls

Tested by 1

get_pageMethod · 0.72