Documentation
¶
Overview ¶
Package httpserver implements an HTTPS server which handles DNS requests over HTTPS.
It implements:
- Google's DNS over HTTPS using JSON (dns-json), as specified in: https://developers.google.com/speed/public-dns/docs/dns-over-https#api_specification. This is also implemented by Cloudflare's 1.1.1.1, as documented in: https://developers.cloudflare.com/1.1.1.1/dns-over-https/json-format/.
- DNS Queries over HTTPS (DoH), as specified in: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-12.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InsecureForTesting = false
InsecureForTesting = true will make Server.ListenAndServe will not use TLS. This is only useful for integration testing purposes.
Functions ¶
This section is empty.
Types ¶
type Server ¶
Server is an HTTPS server that implements DNS over HTTPS, see the package-level documentation for more references.
func (*Server) ListenAndServe ¶
func (s *Server) ListenAndServe()
ListenAndServe starts the HTTPS server.
Click to show internal directories.
Click to hide internal directories.