def length(self) -> Optional[int]:
        """
        获取 body 长度
        """
        len_ = self.get("content-length")
        if len_ is not None:
            return int(cast(str, len_))
        return None