http

package
v0.0.0-...-fbfc268 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a DNS-over-HTTPS client.

func NewClient

func NewClient(timeout time.Duration) *Client

NewClient creates a new DNS-over-HTTPS client.

func (*Client) Exchange

func (c *Client) Exchange(msg *dns.Msg, addr string) (*dns.Msg, time.Duration, error)

Exchange sends the DNS message msg to the DNS-over-HTTPS endpoint addr and returns the response.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL