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

Method handle

tests/test_resolver.py:1225–1230  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

1223
1224class SlowAlwaysType3NXDOMAINNanoNameserver(Server):
1225 def handle(self, request):
1226 response = dns.message.make_response(request.message)
1227 response.set_rcode(dns.rcode.NXDOMAIN)
1228 response.flags |= dns.flags.RA
1229 time.sleep(0.2)
1230 return response
1231
1232
1233@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 2

set_rcodeMethod · 0.80
sleepMethod · 0.45

Tested by

no test coverage detected