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

Method charset_encoding

httpx/_models.py:689–697  ·  httpx/_models.py::Response.charset_encoding

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 class="st">"""
691 Return the encoding, as specified by the Content-Type header.
692 class="st">"""
693 content_type = self.headers.get(class="st">"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 class="st">"""

Callers

nothing calls this directly

Calls 2

getMethod · 0.45

Tested by

no test coverage detected