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:
Miss Islington (bot) 2018-03-29 01:33:47 -07:00 committed by Ned Deily
parent fd93666c8a
commit a48614bee5
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.