Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Nov 2, 2015
1 parent 6fe19b7 commit 5622139
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/web.rst
Original file line number Diff line number Diff line change
Expand Up @@ -650,14 +650,14 @@ Signals
While :ref:`middlewares <aiohttp-web-middlewares>` give very powerful
tool for customizing :ref:`web handler<aiohttp-web-handler>`
processing we need another machinery called signals also.
processing we also need another machinery called signals.
For example middleware may change HTTP headers for *unprepared* response only
(see :meth:`aiohttp.web.StreamResponse.prepare`).
(see :meth:`~aiohttp.web.StreamResponse.prepare`).
But sometimes we need a hook for changing HTTP headers for streamed
responses and websockets. That can be done by subscribing on
:attr:`aiohttp.web.Application.on_response_prepare` signal::
:attr:`~aiohttp.web.Application.on_response_prepare` signal::
async def on_prepare(request, response):
response.headers['My-Header'] = 'value'
Expand Down

0 comments on commit 5622139

Please sign in to comment.