code: def text_stream(stream, content_type='text/plain; charset=utf-8', status='200 OK'):
          
          if 'charset' not in content_type:
              content_type += '; charset=utf-8'
  
          return WbResponse.bin_stream(WbResponse.encode_stream(stream), content_type, status)
docs: Utility method for constructing a streaming text response.
  
          :param Any stream: The response body stream
          :param str content_type: The content-type of the response
          :param str status: The HTTP status line
          :return: WbResponse that is a text stream
          :rtype WbResponse: