@@ -663,7 +663,8 @@ Application is a synonym for web-server.
663
663
664
664
To get fully working example, you have to make *application *, register
665
665
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 `.
667
668
668
669
*Application * contains a *router * instance and a list of callbacks that
669
670
will be called during application finishing.
@@ -716,15 +717,14 @@ arbitrary properties for later access from
716
717
717
718
.. method :: make_handler(**kwargs)
718
719
719
- Creates HTTP protocol for handling requests.
720
+ Creates HTTP protocol factory for handling requests.
720
721
721
- :param kwargs: additional parameters for :class: `RequestHandler `
722
+ :param kwargs: additional parameters for :class: `HandlerManager `
722
723
constructor.
723
724
724
725
You should pass result of the method as *protocol_factory * to
725
726
:meth: `~BaseEventLoop.create_server `, e.g.::
726
727
727
-
728
728
loop = asyncio.get_event_loop()
729
729
730
730
app = Application(loop=loop)
@@ -759,6 +759,17 @@ arbitrary properties for later access from
759
759
*func * may be either regular function or :ref: `coroutine<coroutine> `,
760
760
:meth: `finish ` will un-yield (`yield from `) the later.
761
761
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
+
762
773
.. method :: finish_connections(timeout)
763
774
764
775
A :ref: `coroutine<coroutine> ` that should be called to close all opened
0 commit comments