Skip to content

Commit

Permalink
FIX documentation and NEWS of ThreadedHTTPServer. (GH-6207)
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPalard committed Mar 28, 2018
1 parent 7855313 commit 79c3bab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Doc/library/http.server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
requests by using the :class:`~socketserver.ThreadingMixin`. This
is usefull to handle web browsers pre-opening sockets, on which
:class:`HTTPServer` would wait indefinitly.
is useful to handle web browsers pre-opening sockets, on which
:class:`HTTPServer` would wait indefinitely.

.. versionadded:: 3.7


The :class:`HTTPServer` and :class:`ThreadedHTTPServer` must be given
a *RequestHandlerClass* on instantiation, of which this module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
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.

0 comments on commit 79c3bab

Please sign in to comment.