MCPcopy Create free account
hub / github.com/google/pprof / saveConfig

Method saveConfig

internal/driver/webui.go:453–459  ·  view source on GitHub ↗

saveConfig saves URL configuration.

(w http.ResponseWriter, req *http.Request)

Source from the content-addressed store, hash-verified

451
452// saveConfig saves URL configuration.
453func (ui *webInterface) saveConfig(w http.ResponseWriter, req *http.Request) {
454 if err := setConfig(ui.settingsFile, *req.URL); err != nil {
455 http.Error(w, err.Error(), http.StatusBadRequest)
456 ui.options.UI.PrintErr(err)
457 return
458 }
459}
460
461// deleteConfig deletes a configuration.
462func (ui *webInterface) deleteConfig(w http.ResponseWriter, req *http.Request) {

Callers

nothing calls this directly

Calls 2

setConfigFunction · 0.85
PrintErrMethod · 0.65

Tested by

no test coverage detected