httpserver

package
v0.0.0-...-da8986d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package httpserver implements an HTTPS server which handles DNS requests over HTTPS.

It implements DNS Queries over HTTPS (DoH), as specified in RFC 8484: https://tools.ietf.org/html/rfc8484.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr     string
	Upstream string
	CertFile string
	KeyFile  string
	Insecure bool
}

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.

func (*Server) Resolve

func (s *Server) Resolve(w http.ResponseWriter, req *http.Request)

Resolve incoming DoH requests.

Jump to

Keyboard shortcuts

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