extractKey retrieves the authentication key from the X-LedgerForge-Key header. Parameters: - c: The Gin context containing the request headers. Returns: - string: The authentication key, or empty string if not found.
(c *gin.Context)
| 283 | // Returns: |
| 284 | // - string: The authentication key, or empty string if not found. |
| 285 | func extractKey(c *gin.Context) string { |
| 286 | return c.GetHeader(KeyHeader) |
| 287 | } |
no outgoing calls