func HTTPSServer(tlsConfig *tls.Config, code int, body string, headers map[string]string) (*httptest.Server, string) {
	srv := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		addHeaders(w, headers)
		w.WriteHeader(code)
		fmt.Fprint(w, body)
	}))
	srv.TLS = tlsConfig
	srv.StartTLS()

	return srv, srv.URL
}
// HTTPSServer creates a TLS server with a provided response status code and body
HTTPSServer creates a TLS server with a provided response status code and body
// HTTPSServer creates a TLS server with a provided response status code and body
func HTTPSServer(tlsConfig *tls.Config, code int, body string, headers map[string]string) (*httptest.Server, string) {
	srv := httptest.NewUnstartedServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		addHeaders(w, headers)
		w.WriteHeader(code)
		fmt.Fprint(w, body)
	}))
	srv.TLS = tlsConfig
	srv.StartTLS()
	return srv, srv.URL
}
func HTTPSServer ( tlsConfig * tls . Config , code int , body string , headers map [ string ] string ) ( * httptest . Server , string ) { srv := httptest . NewUnstartedServer ( http . HandlerFunc ( func ( w http . ResponseWriter , r * http . Request ) { addHeaders ( w , headers ) w . WriteHeader ( code ) fmt . Fprint ( w , body ) } ) ) srv . TLS = tlsConfig srv . StartTLS ( ) return srv , srv . URL }
HTTPSServer creates a TLS server with a provided response status code and body
HTTPSServer creates a TLS server with a provided response status code and body