func (cfg Config) httpHandler(httpsRedirectHandler http.Handler) http.Handler {
	httpMux := http.NewServeMux()
	httpMux.HandleFunc(acmeHeader, http.HandlerFunc(acmeChallengeHandler(cfg.Challenge)))
	httpMux.Handle("/", httpsRedirectHandler)
	return httpMux
}
// handleHTTPS creates a handler for HTTP endpoints.
handleHTTPS creates a handler for HTTP endpoints.
// handleHTTPS creates a handler for HTTP endpoints .
func (cfg Config) httpHandler(httpsRedirectHandler http.Handler) http.Handler {
	httpMux := http.NewServeMux()
	httpMux.HandleFunc(acmeHeader, http.HandlerFunc(acmeChallengeHandler(cfg.Challenge)))
	httpMux.Handle("/", httpsRedirectHandler)
	return httpMux
}
func ( cfg Config ) httpHandler ( httpsRedirectHandler http . Handler ) http . Handler { httpMux := http . NewServeMux ( ) httpMux . HandleFunc ( acmeHeader , http . HandlerFunc ( acmeChallengeHandler ( cfg . Challenge ) ) ) httpMux . Handle ( " " , httpsRedirectHandler ) return httpMux }
handleHTTPS creates a handler for HTTP endpoints.
handleHTTPS creates a handler for HTTP endpoints .