FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207)
This commit is contained in:
parent
78553138be
commit
79c3bab35c
|
@ -37,8 +37,11 @@ handler. Code to create and run the server looks like this::
|
||||||
|
|
||||||
This class is identical to HTTPServer but uses threads to handle
|
This class is identical to HTTPServer but uses threads to handle
|
||||||
requests by using the :class:`~socketserver.ThreadingMixin`. This
|
requests by using the :class:`~socketserver.ThreadingMixin`. This
|
||||||
is usefull to handle web browsers pre-opening sockets, on which
|
is useful to handle web browsers pre-opening sockets, on which
|
||||||
:class:`HTTPServer` would wait indefinitly.
|
:class:`HTTPServer` would wait indefinitely.
|
||||||
|
|
||||||
|
.. versionadded:: 3.7
|
||||||
|
|
||||||
|
|
||||||
The :class:`HTTPServer` and :class:`ThreadedHTTPServer` must be given
|
The :class:`HTTPServer` and :class:`ThreadedHTTPServer` must be given
|
||||||
a *RequestHandlerClass* on instantiation, of which this module
|
a *RequestHandlerClass* on instantiation, of which this module
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
http.server now exposes a ThreadedHTTPServer class and uses it when the
|
http.server now exposes a ThreadedHTTPServer class and uses it when the
|
||||||
module is invoked to cope with web browsers pre-opening sockets.
|
module is run with ``-m`` to cope with web browsers pre-opening sockets.
|
||||||
|
|
Loading…
Reference in New Issue