MCPcopy
hub / github.com/pallets/werkzeug / content_length

Method content_length

src/werkzeug/test.py:516–521  ·  view source on GitHub ↗

The content length as integer. Reflected from and to the :attr:`headers`. Do not set if you set :attr:`files` or :attr:`form` for auto detection.

(self)

Source from the content-addressed store, hash-verified

514
515 @property
516 def content_length(self) -> int | None:
517 """The content length as integer. Reflected from and to the
518 :attr:`headers`. Do not set if you set :attr:`files` or
519 :attr:`form` for auto detection.
520 """
521 return self.headers.get("Content-Length", type=int)
522
523 @content_length.setter
524 def content_length(self, value: int | None) -> None:

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected