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)
| 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: |