Skip to content

Commit

Permalink
[PR #5741/e6baf3d4 backport][3.8] Fix broken references in `docs/what…
Browse files Browse the repository at this point in the history
…s_new_1_1.rst` (#5770)

* Fix broken refs

* Drop an unnecessary colon

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
(cherry picked from commit e6baf3d)

Co-authored-by: Olexiy Pohorely <[email protected]>
  • Loading branch information
patchback[bot] and l1storez authored Jun 6, 2021
1 parent 818d62c commit c7e23e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/whats_new_1_1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')``.
Expand Down

0 comments on commit c7e23e0

Please sign in to comment.