[][src]Function trust_dns_https::request::new

pub fn new(
    name_server_name: &str,
    message_len: usize
) -> HttpsResult<Request<()>>

Create a new Reqeust 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].