(c *routing.Context)
| 41 | ) |
| 42 | |
| 43 | func GetLogType(c *routing.Context) LogType { |
| 44 | var t LogType |
| 45 | if t = LogType(c.Request.Header.Peek(HeaderLogType)); t.Valid() { |
| 46 | return t |
| 47 | } |
| 48 | if t = LogType(c.Request.URI().QueryArgs().Peek(QueryLogType)); t.Valid() { |
| 49 | return t |
| 50 | } |
| 51 | return LogTypeNone |
| 52 | } |
| 53 | |
| 54 | func GetLogToBody(c *routing.Context) bool { |
| 55 | if b := string(c.Request.Header.Peek(HeaderLogToBody)); b == "true" { |
no test coverage detected