documentation

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2426 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-03-11 23:15:13 +00:00
parent 5d48829b55
commit 6857196b25

View file

@ -165,6 +165,13 @@ class HttpUrl (urlbase.UrlBase, proxysupport.ProxySupport):
self.check_response(response, fallback_GET)
def check_http_connection (self):
"""
Check HTTP connection and return get response and a flag
if the check algorithm had to fall back to the GET method.
@return: (response, fallback_GET)
@rtype: tuple (HttpResponse, bool)
"""
# flag if second try should be done with GET
fallback_GET = False
while True: