MCPcopy Create free account
hub / github.com/rthalley/dnspython / __init__

Method __init__

dns/nameserver.py:163–176  ·  view source on GitHub ↗
(
        self,
        url: str,
        bootstrap_address: str | None = None,
        verify: bool | str = True,
        want_get: bool = False,
        http_version: dns.query.HTTPVersion = dns.query.HTTPVersion.DEFAULT,
    )

Source from the content-addressed store, hash-verified

161
162class DoHNameserver(Nameserver):
163 def __init__(
164 self,
165 url: str,
166 bootstrap_address: str | None = None,
167 verify: bool | str = True,
168 want_get: bool = False,
169 http_version: dns.query.HTTPVersion = dns.query.HTTPVersion.DEFAULT,
170 ):
171 super().__init__()
172 self.url = url
173 self.bootstrap_address = bootstrap_address
174 self.verify = verify
175 self.want_get = want_get
176 self.http_version = http_version
177
178 def kind(self):
179 return "DoH"

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected