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

Function GetLogToBody

pkg/api/server.go:54–62  ·  view source on GitHub ↗
(c *routing.Context)

Source from the content-addressed store, hash-verified

52}
53
54func GetLogToBody(c *routing.Context) bool {
55 if b := string(c.Request.Header.Peek(HeaderLogToBody)); b == "true" {
56 return true
57 }
58 if b := string(c.Request.URI().QueryArgs().Peek(QueryLogToBody)); b == "true" {
59 return true
60 }
61 return false
62}

Callers 2

InvokeHandlerMethod · 0.92
buildRequestFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected