(self, hdr)
Get content length from the http header
Get content length from the http header
Get content length from the http header
def get_content_length(self, hdr):
        """Get content length from the http header"""
        try:
            return int(hdr.data["content-length"])
        except (ValueError, TypeError):
            return -1
def get_content_length ( self , hdr ) : try : return int ( hdr . data [ "content-length" ] ) except ( ValueError , TypeError ) : return - 1