From: Bob Halley Date: Sat, 20 Nov 2021 14:26:05 +0000 (-0800) Subject: remove backend parameter to https() X-Git-Tag: v2.2.0rc1~30^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10962b2f362dcab10727caceb16383e2032dddf3;p=thirdparty%2Fdnspython.git remove backend parameter to https() --- diff --git a/dns/asyncquery.py b/dns/asyncquery.py index 58766e36..0018541d 100644 --- a/dns/asyncquery.py +++ b/dns/asyncquery.py @@ -360,14 +360,14 @@ async def tls(q, where, timeout=None, port=853, source=None, source_port=0, async def https(q, where, timeout=None, port=443, source=None, source_port=0, one_rr_per_rrset=False, ignore_trailing=False, client=None, - path='/dns-query', post=True, verify=True, backend=None): + path='/dns-query', post=True, verify=True): """Return the response obtained after sending a query via DNS-over-HTTPS. *client*, a ``httpx.AsyncClient``. If provided, the client to use for the query. - *backend*, a ``dns.asyncbackend.Backend``, or ``None``. If ``None``, - the default, then dnspython will use the default backend. + Unlike the other dnspython async functions, a backend cannot be provided + in this function because httpx always auto-detects the async backend. See :py:func:`dns.query.https()` for the documentation of the other parameters, exceptions, and return type of this method.