Function new

Source
pub fn new(
    version: Version,
    name_server_name: &str,
    query_path: &str,
    message_len: usize,
) -> Result<Request<()>>
Expand description

Create a new Request for an http dns-message request

RFC 8484              DNS Queries over HTTPS (DoH)          October 2018

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 6), encoded with base64url
[RFC4648].