MCPcopy
hub / github.com/mitmproxy/mitmproxy / text

Method text

mitmproxy/http.py:346–354  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

344
345 @property
346 def text(self) -> str | None:
347 """
348 The uncompressed and decoded HTTP message body as text.
349
350 Accessing this attribute may raise a `ValueError` when either content-encoding or charset is invalid.
351
352 *See also:* `Message.raw_content`, `Message.content`
353 """
354 return self.get_text()
355
356 @text.setter
357 def text(self, value: str | None) -> None:

Callers 4

fetchVersionsFunction · 0.45
useContentFunction · 0.45
pureSendUpdateFunction · 0.45
updateModesFunction · 0.45

Calls 2

get_textMethod · 0.95
set_textMethod · 0.95

Tested by

no test coverage detected