MCPcopy Create free account
hub / github.com/buggregator/server / smtpJSON

Function smtpJSON

modules/smtp/api.go:470–473  ·  view source on GitHub ↗
(w http.ResponseWriter, v any)

Source from the content-addressed store, hash-verified

468}
469
470func smtpJSON(w http.ResponseWriter, v any) {
471 w.Header().Set("Content-Type", "application/json")
472 json.NewEncoder(w).Encode(v) //nolint:errcheck
473}
474
475func smtpError(w http.ResponseWriter, msg string, code int) {
476 w.Header().Set("Content-Type", "application/json")

Callers 7

handleCursorFunction · 0.85
handleMessagesFunction · 0.85
handleMessagesWaitFunction · 0.85
handleDeleteMessagesFunction · 0.85
handleStatsFunction · 0.85
handleLinksFunction · 0.85
handleCodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected