diff --git a/docs/web.rst b/docs/web.rst index 3f8cc2223bc..5845a82d79d 100644 --- a/docs/web.rst +++ b/docs/web.rst @@ -193,7 +193,7 @@ You can also specify a custom regex in the form ``{identifier:regex}``:: .. note:: Regex should match against *percent encoded* URL - (``request.rel_url_raw_path``). E.g. *space character* is encoded + (``request.raw_path``). E.g. *space character* is encoded as ``%20``. According to diff --git a/docs/web_reference.rst b/docs/web_reference.rst index 7bac2644b96..943a1334bf1 100644 --- a/docs/web_reference.rst +++ b/docs/web_reference.rst @@ -144,7 +144,8 @@ and :ref:`aiohttp-web-signals` handlers. .. attribute:: raw_path The URL including raw *PATH INFO* without the host or scheme. - Warning, the path may be quoted and may contains non valid URL characters, e.g. + Warning, the path may be quoted and may contains non valid URL + characters, e.g. ``/my%2Fpath%7Cwith%21some%25strange%24characters``. For unquoted version please take a look on :attr:`path`.