From 06f99cb0c06c3fc5ea4e7f62bec0208ccf19822b Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Tue, 2 Feb 2021 11:30:20 +0100 Subject: [PATCH] dnsdist docs: formatting + spelling in registerWebHandler explanation --- pdns/dnsdistdist/docs/reference/config.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pdns/dnsdistdist/docs/reference/config.rst b/pdns/dnsdistdist/docs/reference/config.rst index c19c17fd8e..cb57882d92 100644 --- a/pdns/dnsdistdist/docs/reference/config.rst +++ b/pdns/dnsdistdist/docs/reference/config.rst @@ -336,11 +336,12 @@ Webserver configuration Register a function named ``handler`` that will be called for every query sent to the exact ``path`` path. The function will receive a :class:`WebRequest` object and a :class:`WebResponse` object, representing respectively the HTTP request received and the HTTP response to send. - For example an handler registered for '/foo' will receive these queries: - - GET /foo - - POST /foo - - GET /foo?param=1 - - ... + For example a handler registered for '/foo' will receive these queries: + + - ``GET /foo`` + - ``POST /foo`` + - ``GET /foo?param=1`` + But not queries for /foobar or /foo/bar. A sample handler function could be: -- 2.47.2