MCPcopy Create free account
hub / github.com/boringproxy/boringproxy / alertDialog

Method alertDialog

ui_handler.go:766–778  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request, message, redirectUrl string)

Source from the content-addressed store, hash-verified

764}
765
766func (h *WebUiHandler) alertDialog(w http.ResponseWriter, r *http.Request, message, redirectUrl string) error {
767 err := h.tmpl.ExecuteTemplate(w, "alert.tmpl", &AlertData{
768 Head: h.headHtml,
769 Message: message,
770 RedirectUrl: redirectUrl,
771 })
772
773 if err != nil {
774 return err
775 }
776
777 return nil
778}
779
780func (h *WebUiHandler) handleLoading(w http.ResponseWriter, r *http.Request) {
781

Callers 10

handleWebUiRequestMethod · 0.95
handleTokensMethod · 0.95
handleClientsMethod · 0.95
handleCreateTunnelMethod · 0.95
handleUsersMethod · 0.95
deleteUserMethod · 0.95
deleteTokenMethod · 0.95
confirmDeleteClientMethod · 0.95
deleteClientMethod · 0.95
handleLoadingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected