Skip to content

Commit 9a0f947

Browse files
committed
update docs
1 parent 8f1e993 commit 9a0f947

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

docs/web.rst

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,8 @@ Application is a synonym for web-server.
663663

664664
To get fully working example, you have to make *application*, register
665665
supported urls in *router* and create a *server socket* with
666-
:meth:`make_handler` as a *protocol factory*.
666+
:class:`aiohttp.HandlerManager` as a *protocol factory*. *HandlerManager*
667+
could be constructed with :meth:`make_handler`.
667668

668669
*Application* contains a *router* instance and a list of callbacks that
669670
will be called during application finishing.
@@ -716,15 +717,14 @@ arbitrary properties for later access from
716717

717718
.. method:: make_handler(**kwargs)
718719

719-
Creates HTTP protocol for handling requests.
720+
Creates HTTP protocol factory for handling requests.
720721

721-
:param kwargs: additional parameters for :class:`RequestHandler`
722+
:param kwargs: additional parameters for :class:`HandlerManager`
722723
constructor.
723724

724725
You should pass result of the method as *protocol_factory* to
725726
:meth:`~BaseEventLoop.create_server`, e.g.::
726727

727-
728728
loop = asyncio.get_event_loop()
729729

730730
app = Application(loop=loop)
@@ -759,6 +759,17 @@ arbitrary properties for later access from
759759
*func* may be either regular function or :ref:`coroutine<coroutine>`,
760760
:meth:`finish` will un-yield (`yield from`) the later.
761761

762+
763+
HandlerManager
764+
^^^^^^^^^^^^^^
765+
766+
HandlerManager is responsible for creating HTTP protocol objects that
767+
can handle http connections.
768+
769+
.. attribute:: connections
770+
771+
List of all currently oppened connections.
772+
762773
.. method:: finish_connections(timeout)
763774

764775
A :ref:`coroutine<coroutine>` that should be called to close all opened

0 commit comments

Comments
 (0)