kubernetes/vendor/go.etcd.io/etcd/server/v3/etcdserver/api/etcdhttp/base.go

const configPath

const varsPath

const versionPath

// HandleBasic adds handlers to a mux for serving JSON etcd client requests
// that do not access the v2 store.
func HandleBasic(lg *zap.Logger, mux *http.ServeMux, server etcdserver.ServerPeer) {}

func versionHandler(c api.Cluster, fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc {}

func serveVersion(w http.ResponseWriter, r *http.Request, clusterV string) {}

func serveVars(w http.ResponseWriter, r *http.Request) {}

func allowMethod(w http.ResponseWriter, r *http.Request, m string) bool {}

// WriteError logs and writes the given Error to the ResponseWriter
// If Error is an etcdErr, it is rendered to the ResponseWriter
// Otherwise, it is assumed to be a StatusInternalServerError
func WriteError(lg *zap.Logger, w http.ResponseWriter, r *http.Request, err error) {}