MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / GetGinRequestID

Function GetGinRequestID

internal/logging/requestid.go:51–61  ·  view source on GitHub ↗

GetGinRequestID retrieves the request ID from the Gin context.

(c *gin.Context)

Source from the content-addressed store, hash-verified

49
50// GetGinRequestID retrieves the request ID from the Gin context.
51func GetGinRequestID(c *gin.Context) string {
52 if c == nil {
53 return ""
54 }
55 if id, exists := c.Get(ginRequestIDKey); exists {
56 if s, ok := id.(string); ok {
57 return s
58 }
59 }
60 return ""
61}

Calls 1

GetMethod · 0.45