def mimetype(self) -> str | None:
        """The mimetype (content type without charset etc.)

        .. versionadded:: 0.14
        """
        ct = self.content_type
        return ct.split(";")[0].strip() if ct else None
The mimetype (content type without charset etc.)

        .. versionadded:: 0.14
        
src/werkzeug/test.py