MCPcopy
hub / github.com/aio-libs/aiohttp / charset

Method charset

aiohttp/web_reqrep.py:63–68  ·  view source on GitHub ↗

The value of charset part for Content-Type HTTP header.

(self, _CONTENT_TYPE=hdrs.CONTENT_TYPE)

Source from the content-addressed store, hash-verified

61
62 @property
63 def charset(self, _CONTENT_TYPE=hdrs.CONTENT_TYPE):
64 """The value of charset part for Content-Type HTTP header."""
65 raw = self.headers.get(_CONTENT_TYPE)
66 if self._stored_content_type != raw:
67 self._parse_content_type(raw)
68 return self._content_dict.get('charset')
69
70 @property
71 def content_length(self, _CONTENT_LENGTH=hdrs.CONTENT_LENGTH):

Callers

nothing calls this directly

Calls 2

_parse_content_typeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected