mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-05 05:04:46 +00:00
documentation
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2426 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
5d48829b55
commit
6857196b25
1 changed files with 7 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue