FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207)

This commit is contained in:
Julien Palard 2018-03-28 23:24:58 +02:00 committed by GitHub
parent 78553138be
commit 79c3bab35c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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.