Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
1cee216c
Kaydet (Commit)
1cee216c
authored
May 29, 2018
tarafından
Géry Ogam
Kaydeden (comit)
Julien Palard
May 29, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-31639: Change ThreadedHTTPServer to ThreadingHTTPServer class name (GH-7195)
üst
5d97b7bc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
http.server.rst
Doc/library/http.server.rst
+2
-2
server.py
Lib/http/server.py
+3
-3
2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
...S.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
+1
-1
No files found.
Doc/library/http.server.rst
Dosyayı görüntüle @
1cee216c
...
...
@@ -33,7 +33,7 @@ handler. Code to create and run the server looks like this::
:attr:`server_port`. The server is accessible by the handler, typically
through the handler's :attr:`server` instance variable.
.. class:: Thread
ed
HTTPServer(server_address, RequestHandlerClass)
.. class:: Thread
ing
HTTPServer(server_address, RequestHandlerClass)
This class is identical to HTTPServer but uses threads to handle
requests by using the :class:`~socketserver.ThreadingMixIn`. This
...
...
@@ -43,7 +43,7 @@ handler. Code to create and run the server looks like this::
.. versionadded:: 3.7
The :class:`HTTPServer` and :class:`Thread
ed
HTTPServer` must be given
The :class:`HTTPServer` and :class:`Thread
ing
HTTPServer` must be given
a *RequestHandlerClass* on instantiation, of which this module
provides three different variants:
...
...
Lib/http/server.py
Dosyayı görüntüle @
1cee216c
...
...
@@ -83,7 +83,7 @@ XXX To do:
__version__
=
"0.6"
__all__
=
[
"HTTPServer"
,
"Thread
ed
HTTPServer"
,
"BaseHTTPRequestHandler"
,
"HTTPServer"
,
"Thread
ing
HTTPServer"
,
"BaseHTTPRequestHandler"
,
"SimpleHTTPRequestHandler"
,
"CGIHTTPRequestHandler"
,
]
...
...
@@ -140,7 +140,7 @@ class HTTPServer(socketserver.TCPServer):
self
.
server_port
=
port
class
Thread
ed
HTTPServer
(
socketserver
.
ThreadingMixIn
,
HTTPServer
):
class
Thread
ing
HTTPServer
(
socketserver
.
ThreadingMixIn
,
HTTPServer
):
daemon_threads
=
True
...
...
@@ -1217,7 +1217,7 @@ class CGIHTTPRequestHandler(SimpleHTTPRequestHandler):
def
test
(
HandlerClass
=
BaseHTTPRequestHandler
,
ServerClass
=
Thread
ed
HTTPServer
,
ServerClass
=
Thread
ing
HTTPServer
,
protocol
=
"HTTP/1.0"
,
port
=
8000
,
bind
=
""
):
"""Test the HTTP request handler class.
...
...
Misc/NEWS.d/next/Library/2017-12-27-21-55-19.bpo-31639.l3avDJ.rst
Dosyayı görüntüle @
1cee216c
http.server now exposes a Thread
ed
HTTPServer class and uses it when the
http.server now exposes a Thread
ing
HTTPServer class and uses it when the
module is run with ``-m`` to cope with web browsers pre-opening sockets.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment