Commit 79c3bab3 authored by Julien Palard's avatar Julien Palard Committed by GitHub

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

parent 78553138
......@@ -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
......
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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment