pub fn new(
name_server_name: &str,
message_len: usize
) -> HttpsResult<Request<()>>
Available on crate feature
dns-over-https
only.Expand description
Create a new Request for an http/2 dns-message request
https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-10#section-5.1
The URI Template defined in this document is processed without any
variables when the HTTP method is POST. When the HTTP method is GET
the single variable "dns" is defined as the content of the DNS
request (as described in Section 7), encoded with base64url
[RFC4648].