docs: def add_text_content_type(application, content_type, default_encoding,
                            dumps, loads):
      """
      Add handler for a text content type.
  
      :param tornado.web.Application application: the application to modify
      :param str content_type: the content type to add
      :param str default_encoding: encoding to use when one is unspecified
      :param dumps: function that dumps a dictionary to a string.
          ``dumps(dict, encoding:str) -> str``
      :param loads: function that loads a dictionary from a string.
          ``loads(str, encoding:str) -> dict``
  
      Note that the ``charset`` parameter is stripped from `content_type`
      if it is present.
  
      """
      parsed = headers.parse_content_type(content_type)
      parsed.parameters.pop('charset', None)
      normalized = str(parsed)
      add_transcoder(application,
                     handlers.TextContentHandler(normalized, dumps, loads,
                                                 default_encoding))