Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d9cf8e7e
Commit
d9cf8e7e
authored
Jul 14, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Markup consistency nits.
parent
9753ae12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
Doc/lib/liburllib2.tex
Doc/lib/liburllib2.tex
+17
-15
No files found.
Doc/lib/liburllib2.tex
View file @
d9cf8e7e
...
...
@@ -50,17 +50,18 @@ which case it must be possible to call the constructor without
any parameters). Instances of the following classes will be in
front of the
\var
{
handler
}
s, unless the
\var
{
handler
}
s contain
them, instances of them or subclasses of them:
\c
ode
{
ProxyHandler, UnknownHandler, HTTPHandler, HTTPDefaultErrorHandler,
HTTPRedirectHandler, FTPHandler,
FileHandler
}
\class
{
ProxyHandler
}
,
\class
{
UnknownHandler
}
,
\class
{
HTTPHandler
}
,
\c
lass
{
HTTPDefaultErrorHandler
}
,
\class
{
HTTPRedirectHandler
}
,
\class
{
FTPHandler
}
,
\class
{
FileHandler
}
If the Python installation has SSL support (
\function
{
socket.ssl()
}
exists),
\class
{
HTTPSHandler
}
will also be added.
Beginning in Python 2.3, a
\class
{
BaseHandler
}
subclass may also change its
\var
{
handler
_
order
}
member variable to modify its position in the handlers
list. Besides
\class
{
ProxyHandler
}
, which has
\var
{
handler
_
order
}
of
\code
{
100
}
, all handlers currently have it set to
\code
{
500
}
.
Beginning in Python 2.3, a
\class
{
BaseHandler
}
subclass may also
change its
\member
{
handler
_
order
}
member variable to modify its
position in the handlers list. Besides
\class
{
ProxyHandler
}
, which has
\member
{
handler
_
order
}
of
\code
{
100
}
, all handlers currently have it
set to
\code
{
500
}
.
\end{funcdesc}
...
...
@@ -416,20 +417,21 @@ for \method{http_error_default()}.
fp, code, msg, hdrs
}
Return a
\class
{
Request
}
or
\code
{
None
}
in response to a redirect.
This is called by the default implementations of the
\
code
{
http
_
error
_
30x()
}
methods when a redirection is received from
the server. If a redirection should take place, return a new
\class
{
Request
}
to allow
\
code
{
http
_
error
_
30x
()
}
to perform the
\
method
{
http
_
error
_
30*()
}
methods when a redirection is received
from
the server. If a redirection should take place, return a new
\class
{
Request
}
to allow
\
method
{
http
_
error
_
30*
()
}
to perform the
redirect. Otherwise, raise
\exception
{
HTTPError
}
if no other
\class
{
Handler
}
should try to handle this URL, or return
\code
{
None
}
if you can't but another
\class
{
Handler
}
might.
\note
{
The default implementation of this method does not strictly
follow
\rfc
{
2616
}
, which says that 301 and 302 responses to POST
\begin{notice}
The default implementation of this method does not strictly
follow
\rfc
{
2616
}
, which says that 301 and 302 responses to
\code
{
POST
}
requests must not be automatically redirected without confirmation by
the user. In reality, browsers do allow automatic redirection of
these responses, changing the POST to a
GET
, and the default
implementation reproduces this behavio
ur.
}
these responses, changing the POST to a
\code
{
GET
}
, and the default
implementation reproduces this behavio
r.
\end{notice}
\end{methoddesc}
...
...
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