def xml_result(xml: str,
               extraheaders: TYPE_WSGI_RESPONSE_HEADERS = None) \
        -> WSGI_TUPLE_TYPE:
    """
    Returns ``(contenttype, extraheaders, data)`` tuple for UTF-8 XML.
    """
    extraheaders = extraheaders or []
    return 'text/xml; charset=utf-8', extraheaders, xml.encode("utf-8")
def xml_result ( xml : str , extraheaders : TYPE_WSGI_RESPONSE_HEADERS = None ) -> WSGI_TUPLE_TYPE : extraheaders = extraheaders or [ ] return 'text/xml; charset=utf-8' , extraheaders , xml . encode ( "utf-8" )
Returns ``(contenttype, extraheaders, data)`` tuple for UTF-8 XML.