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

Function Index

server_test.go:50–54  ·  view source on GitHub ↗
(ctx Context)

Source from the content-addressed store, hash-verified

48}
49
50func Index(ctx Context) error {
51 ctx.Response().Header().Set("Content-Type", "text/html; charset=utf-8")
52 err := ctx.WriteStringC(201, "index => ", ctx.RemoteIP(), "我是首页")
53 return err
54}

Callers

nothing calls this directly

Calls 5

SetMethod · 0.65
ResponseMethod · 0.65
WriteStringCMethod · 0.65
RemoteIPMethod · 0.65
HeaderMethod · 0.45

Tested by

no test coverage detected