MCPcopy Create free account
hub / github.com/devfeel/dotweb / Any

Function Any

example/router/main.go:44–47  ·  view source on GitHub ↗
(ctx dotweb.Context)

Source from the content-addressed store, hash-verified

42}
43
44func Any(ctx dotweb.Context) error {
45 ctx.Response().Header().Set("Content-Type", "text/html; charset=utf-8")
46 return ctx.WriteString("any - " + ctx.Request().Method + " - " + ctx.RouterNode().Path())
47}
48
49func HandlerFunc(w http.ResponseWriter, r *http.Request) {
50 w.Write([]byte("go raw http func"))

Callers

nothing calls this directly

Calls 7

SetMethod · 0.65
ResponseMethod · 0.65
WriteStringMethod · 0.65
RequestMethod · 0.65
PathMethod · 0.65
RouterNodeMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected