MCPcopy Index your code
hub / github.com/php/frankenphp / threads

Method threads

caddy/admin.go:48–56  ·  view source on GitHub ↗
(w http.ResponseWriter, _ *http.Request)

Source from the content-addressed store, hash-verified

46}
47
48func (admin *FrankenPHPAdmin) threads(w http.ResponseWriter, _ *http.Request) error {
49 debugState := frankenphp.DebugState()
50 prettyJson, err := json.MarshalIndent(debugState, "", " ")
51 if err != nil {
52 return admin.error(http.StatusInternalServerError, err)
53 }
54
55 return admin.success(w, string(prettyJson))
56}
57
58func (admin *FrankenPHPAdmin) success(w http.ResponseWriter, message string) error {
59 w.WriteHeader(http.StatusOK)

Callers

nothing calls this directly

Calls 3

errorMethod · 0.95
successMethod · 0.95
DebugStateFunction · 0.92

Tested by

no test coverage detected