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
cc99528d
Kaydet (Commit)
cc99528d
authored
May 11, 2011
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
issue12039 - update the documentation of send_response method in http.server.rst.
üst
6ea17a88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
http.server.rst
Doc/library/http.server.rst
+11
-4
No files found.
Doc/library/http.server.rst
Dosyayı görüntüle @
cc99528d
...
@@ -180,10 +180,17 @@ of which this module provides three different variants:
...
@@ -180,10 +180,17 @@ of which this module provides three different variants:
.. method:: send_response(code, message=None)
.. method:: send_response(code, message=None)
Adds a response header to the headers buffer and logs the accepted
Adds a response header to the headers buffer and logs the accepted
request. The HTTP response line is sent, followed by *Server* and
request. The HTTP response line is written to the internal buffer,
*Date* headers. The values for these two headers are picked up from
followed by *Server* and *Date* headers. The values for these two headers
the :meth:`version_string` and :meth:`date_time_string` methods,
are picked up from the :meth:`version_string` and
respectively.
:meth:`date_time_string` methods, respectively. If the server does not
intend to send any other headers using the :meth:`send_header` method,
then send_response should be followed by a :meth:`end_headers` call.
..versionchanged:: 3.3
Writing of headers to internal buffer and need to call
:meth:`end_headers` explicitly.
.. method:: send_header(keyword, value)
.. method:: send_header(keyword, value)
...
...
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