Return the encoding, as specified by the Content-Type header.
(self)
| 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">""" |
nothing calls this directly
no test coverage detected