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