def add_index(self, anchor, name, sig):
        """
        Add index entries to self.indexnode, if applicable.

        *name* is whatever :meth:`handle_signature()` returned.
        """
        self.indexnode['entries'].append(('single',
                                          _("%s (HTTP response)") % sig,
                                          anchor, anchor))
        self.indexnode['entries'].append(('single',
                                          _("HTTP response; %s") % sig,
                                          anchor, anchor))
dataset/ETHPy150Open deceze/Sphinx-HTTP-domain/sphinx_http_domain/directives.py/HTTPResponse.add_index/original