hasToken() — fiber Function Reference
Architecture documentation for the hasToken() function in compress.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 76a3679b_5185_e49f_1323_28305527d888["hasToken()"] dbda7960_96fc_de94_3b5b_209ae85b21e1["compress.go"] 76a3679b_5185_e49f_1323_28305527d888 -->|defined in| dbda7960_96fc_de94_3b5b_209ae85b21e1 184ab948_7a36_6653_ee12_1af97571b3f5["shouldSkip()"] 184ab948_7a36_6653_ee12_1af97571b3f5 -->|calls| 76a3679b_5185_e49f_1323_28305527d888 f9f0791e_b416_4a3a_d51c_82f5a44ce020["appendVaryAcceptEncoding()"] f9f0791e_b416_4a3a_d51c_82f5a44ce020 -->|calls| 76a3679b_5185_e49f_1323_28305527d888 style 76a3679b_5185_e49f_1323_28305527d888 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/compress/compress.go lines 12–19
func hasToken(header, token string) bool {
for part := range strings.SplitSeq(header, ",") {
if utils.EqualFold(utils.TrimSpace(part), token) {
return true
}
}
return false
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does hasToken() do?
hasToken() is a function in the fiber codebase, defined in middleware/compress/compress.go.
Where is hasToken() defined?
hasToken() is defined in middleware/compress/compress.go at line 12.
What calls hasToken()?
hasToken() is called by 2 function(s): appendVaryAcceptEncoding, shouldSkip.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free