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

Function Index

example/config/main.go:43–46  ·  view source on GitHub ↗
(ctx dotweb.Context)

Source from the content-addressed store, hash-verified

41}
42
43func Index(ctx dotweb.Context) error {
44 ctx.Response().Header().Set("Content-Type", "text/html; charset=utf-8")
45 return ctx.WriteString("index => ", fmt.Sprint(ctx.RouterNode().Middlewares()))
46}
47
48func GetAppSet(ctx dotweb.Context) error {
49 key := ctx.QueryString("key")

Callers

nothing calls this directly

Calls 6

SetMethod · 0.65
ResponseMethod · 0.65
WriteStringMethod · 0.65
MiddlewaresMethod · 0.65
RouterNodeMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected