FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207) (GH-6302)
(cherry picked from commit 79c3bab35c
)
Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
parent
fd93666c8a
commit
a48614bee5
|
@ -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