def METHOD_NAME(
    self, headers: t.List[t.Tuple[bytes, bytes]]
) -> t.Tuple[str, str]:
    """Extract the mime type and encoding from the content type headers.
    :param headers: Headers from ASGI scope
    :return: A tuple of mime type, encoding
    """
    mime_type, encoding = utils.METHOD_NAME(headers)
    if mime_type is None:
        # Content-type header is not required. Take a best guess.
        try:
            mime_type = self._operation.consumes[0]
        except IndexError:
            mime_type = "application/octet-stream"
    if encoding is None:
        encoding = "utf-8"
    return mime_type, encoding