From: Peter van Dijk Date: Tue, 2 Feb 2021 10:30:20 +0000 (+0100) Subject: dnsdist docs: formatting + spelling in registerWebHandler explanation X-Git-Tag: dnsdist-1.6.0-alpha2~73^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F10040%2Fhead;p=thirdparty%2Fpdns.git dnsdist docs: formatting + spelling in registerWebHandler explanation --- 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: