MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / HelloWorldHandler

Function HelloWorldHandler

pkg/httptrigger/handler.go:27–31  ·  view source on GitHub ↗
(c *routing.Context)

Source from the content-addressed store, hash-verified

25)
26
27func HelloWorldHandler(c *routing.Context) error {
28 c.SetStatusCode(http.StatusOK)
29 c.WriteString("hello controller http trigger")
30 return nil
31}
32
33func ProxyHandler(c *routing.Context) error {
34 reqCtx := BuildContext(c)

Callers

nothing calls this directly

Calls 2

WriteStringMethod · 0.80
SetStatusCodeMethod · 0.45

Tested by

no test coverage detected