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
35cff5ff
Kaydet (Commit)
35cff5ff
authored
May 22, 2007
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document "new" params to HTTPConnection/HTTPSConnection
üst
13703087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
libhttplib.tex
Doc/lib/libhttplib.tex
+8
-3
No files found.
Doc/lib/libhttplib.tex
Dosyayı görüntüle @
35cff5ff
...
...
@@ -26,12 +26,16 @@ that use HTTP and HTTPS.
The module provides the following classes:
\begin{classdesc}
{
HTTPConnection
}{
host
\optional
{
, port
}}
\begin{classdesc}
{
HTTPConnection
}{
host
\optional
{
, port
\optional
{
, strict
}
}}
An
\class
{
HTTPConnection
}
instance represents one transaction with an HTTP
server. It should be instantiated passing it a host and optional port number.
If no port number is passed, the port is extracted from the host string if it
has the form
\code
{
\var
{
host
}
:
\var
{
port
}}
, else the default HTTP port (80) is
used. For example, the following calls all create instances that connect to
used. When True, the optional parameter
\var
{
strict
}
causes
\code
{
BadStatusLine
}
to be raised if the status line can't be parsed
as a valid HTTP/1.0 or 1.1 status line.
For example, the following calls all create instances that connect to
the server at the same host and port:
\begin{verbatim}
...
...
@@ -42,7 +46,8 @@ the server at the same host and port:
\versionadded
{
2.0
}
\end{classdesc}
\begin{classdesc}
{
HTTPSConnection
}{
host
\optional
{
, port, key
_
file, cert
_
file
}}
\begin{classdesc}
{
HTTPSConnection
}{
host
\optional
{
, port
\optional
{
,
key
_
file
\optional
{
, cert
_
file
\optional
{
, strict
}}}}}
A subclass of
\class
{
HTTPConnection
}
that uses SSL for communication with
secure servers. Default port is
\code
{
443
}
.
\var
{
key
_
file
}
is
...
...
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