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

Method content_length

aiohttp/web_reqrep.py:71–77  ·  view source on GitHub ↗

The value of Content-Length HTTP header.

(self, _CONTENT_LENGTH=hdrs.CONTENT_LENGTH)

Source from the content-addressed store, hash-verified

69
70 @property
71 def content_length(self, _CONTENT_LENGTH=hdrs.CONTENT_LENGTH):
72 """The value of Content-Length HTTP header."""
73 l = self.headers.get(_CONTENT_LENGTH)
74 if l is None:
75 return None
76 else:
77 return int(l)
78
79FileField = collections.namedtuple('Field', 'name filename file content_type')
80

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected