code: def text_result(text: str,
                  extraheaders: TYPE_WSGI_RESPONSE_HEADERS = None,
                  filename: str = None) -> WSGI_TUPLE_TYPE:
      
      extraheaders = extraheaders or []
      if filename:
          extraheaders.append(
              ('content-disposition', 'inline; filename="{}"'.format(filename))
          )
      contenttype = 'text/plain; charset=utf-8'
      if filename:
          contenttype += '; filename="{}"'.format(filename)
      return contenttype, extraheaders, text.encode("utf-8")
docs: Returns ``(contenttype, extraheaders, data)`` tuple for UTF-8 text.