doh

package
Version: v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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

func NewRequest(method, url string, m *dns.Msg) (*http.Request, error)

NewRequest returns a new DoH request given a method, URL (without any paths, so exclude /dns-query) and dns.Msg.

func RequestToMsg

func RequestToMsg(req *http.Request) (*dns.Msg, error)

RequestToMsg converts a http.Request to a dns message.

func ResponseToMsg

func ResponseToMsg(resp *http.Response) (*dns.Msg, error)

ResponseToMsg converts a http.Response to a dns message.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL