MCPcopy
hub / github.com/mitmproxy/mitmproxy / content

Method content

mitmproxy/http.py:331–339  ·  view source on GitHub ↗

The uncompressed HTTP message body as bytes. Accessing this attribute may raise a `ValueError` when the HTTP content-encoding is invalid. *See also:* `Message.raw_content`, `Message.text`

(self)

Source from the content-addressed store, hash-verified

329
330 @property
331 def content(self) -> bytes | None:
332 """
333 The uncompressed HTTP message body as bytes.
334
335 Accessing this attribute may raise a `ValueError` when the HTTP content-encoding is invalid.
336
337 *See also:* `Message.raw_content`, `Message.text`
338 """
339 return self.get_content()
340
341 @content.setter
342 def content(self, value: bytes | None) -> None:

Callers 1

toDOMMethod · 0.45

Calls 2

get_contentMethod · 0.95
set_contentMethod · 0.95

Tested by

no test coverage detected