From e6baf3d4d235d70bd4547791426f8ab80b3c9b68 Mon Sep 17 00:00:00 2001 From: Olexiy Pohorely <52452803+l1storez@users.noreply.github.com> Date: Sun, 6 Jun 2021 22:02:24 +0300 Subject: [PATCH] Fix broken references in `docs/whats_new_1_1.rst` (#5741) * Fix broken refs * Drop an unnecessary colon Co-authored-by: Sviatoslav Sydorenko --- docs/whats_new_1_1.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/whats_new_1_1.rst b/docs/whats_new_1_1.rst index db71e10e8b1..7b5305efbf5 100644 --- a/docs/whats_new_1_1.rst +++ b/docs/whats_new_1_1.rst @@ -20,8 +20,8 @@ e.g. ``session.get('http://example.com')`` works as well as Internal API has been switched to :class:`yarl.URL`. :class:`aiohttp.CookieJar` accepts :class:`~yarl.URL` instances only. -On server side has added :class:`web.Request.url` and -:class:`web.Request.rel_url` properties for representing relative and +On server side has added :attr:`aiohttp.web.BaseRequest.url` and +:attr:`aiohttp.web.BaseRequest.rel_url` properties for representing relative and absolute request's URL. URL using is the recommended way, already existed properties for @@ -32,7 +32,7 @@ parameter. :class:`str` is still supported and will be supported forever. Reverse URL processing for *router* has been changed. -The main API is :class:`aiohttp.web.Request.url_for(name, **kwargs)` +The main API is ``aiohttp.web.Request.url_for`` which returns a :class:`yarl.URL` instance for named resource. It does not support *query args* but adding *args* is trivial: ``request.url_for('named_resource', param='a').with_query(arg='val')``.