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

Method charset_encoding

httpx/_models.py:689–697  ·  view source on GitHub ↗

Return the encoding, as specified by the Content-Type header.

(self)

Source from the content-addressed store, hash-verified

687
688 @property
689 def charset_encoding(self) -> str | None:
690 """
691 Return the encoding, as specified by the Content-Type header.
692 """
693 content_type = self.headers.get("Content-Type")
694 if content_type is None:
695 return None
696
697 return _parse_content_type_charset(content_type)
698
699 def _get_content_decoder(self) -> ContentDecoder:
700 """

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected