MCPcopy
hub / github.com/encode/httpx / iter_chunks

Method iter_chunks

httpx/_multipart.py:258–263  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 yield FileField(name=name, value=value)
257
258 def iter_chunks(self) -> typing.Iterator[bytes]:
259 for field in self.fields:
260 yield b"--%s\r\n" % self.boundary
261 yield from field.render()
262 yield b"\r\n"
263 yield b"--%s--\r\n" % self.boundary
264
265 def get_content_length(self) -> int | None:
266 """

Callers 2

__iter__Method · 0.95
__aiter__Method · 0.95

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected