def content_type(self) -> Optional[ContentTypeHeader]:
        """The ``Content-Type`` header."""
        try:
            return cast(ContentTypeHeader, self[b'content-type'][0])
        except (KeyError, IndexError):
            return None
def content_type ( self ) -> Optional [ ContentTypeHeader ] : try : return cast ( ContentTypeHeader , self [ b'content-type' ] [ 0 ] ) except ( KeyError , IndexError ) : return None
The ``Content-Type`` header.