Documentation ¶
Index ¶
Constants ¶
View Source
const MimeType = "application/dns-message"
MimeType is the DoH mimetype that should be used.
View Source
const Path = "/dns-query"
Path is the URL path that should be used.
Variables ¶
This section is empty.
Functions ¶
func NewRequest ¶
NewRequest returns a new DoH request given a method, URL (without any paths, so exclude /dns-query) and dns.Msg.
func RequestToMsg ¶
RequestToMsg converts a http.Request to a dns message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.