prometheus_aioexporter/web.py
async def _handle_home(self, request: Request) -> Response:
        """Home page request handler."""
        if self.description:
            title = f'{self.name} - {self.description}'
        else:
            title = self.name

        text = dedent(
            f'''<!DOCTYPE html>
            <html>
              <head>
                <title>{title}</title>
              </head>
              <body>
                <h1>{title}</h1>
                <p>
                  Metric are exported at the
                  <a href="/metrics">/metrics</a> endpoint.
                </p>
              </body>
            </html>
            ''')
        return Response(content_type='text/html', text=text)
async def _handle_home(self, request: Request) -> Response:
        """Home page request handler."""
        if self.description:
            title = f'{self.name} - {self.description}'
        else:
            title = self.name

        text = dedent(
            f'''<!DOCTYPE html>
            <html>
              <head>
                <title>{title}</title>
              </head>
              <body>
                <h1>{title}</h1>
                <p>
                  Metric are exported at the
                  <a href="/metrics">/metrics</a> endpoint.
                </p>
              </body>
            </html>
            ''')
        return Response(content_type='text/html', text=text)
Home page request handler.