linkcheck.checker.proxysupport

Mixin class for URLs that can be fetched over a proxy.

Classes

ProxySupport()

Get support for proxying and for URLs with user:pass@host setting.

class linkcheck.checker.proxysupport.ProxySupport[source]

Bases: object

Get support for proxying and for URLs with user:pass@host setting.

get_netloc()[source]

Determine scheme, host and port for this connection taking proxy data into account. :return: tuple (scheme, host, port) :rtype: tuple(string, string, int)

ignore_proxy_host()[source]

Check if self.host is in the $no_proxy ignore list.

set_proxy(proxy)[source]

Parse given proxy information and store parsed values. Note that only http:// proxies are supported, both for ftp:// and http:// URLs.