hasTransferEncodingBody() — fiber Function Reference
Architecture documentation for the hasTransferEncodingBody() function in ctx.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 9f53cb0d_f289_ffc8_6520_3c1547aec6b4["hasTransferEncodingBody()"] cad7e9fd_e7ea_d2d5_dcdb_0dc8cb836c4d["ctx.go"] 9f53cb0d_f289_ffc8_6520_3c1547aec6b4 -->|defined in| cad7e9fd_e7ea_d2d5_dcdb_0dc8cb836c4d style 9f53cb0d_f289_ffc8_6520_3c1547aec6b4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx.go lines 443–482
func hasTransferEncodingBody(hdr *fasthttp.RequestHeader) bool {
teBytes := hdr.Peek(HeaderTransferEncoding)
var te string
if len(teBytes) > 0 {
te = utils.UnsafeString(teBytes)
} else {
for key, value := range hdr.All() {
if !utils.EqualFold(utils.UnsafeString(key), HeaderTransferEncoding) {
continue
}
te = utils.UnsafeString(value)
break
}
}
if te == "" {
return false
}
hasEncoding := false
for raw := range strings.SplitSeq(te, ",") {
token := utils.TrimSpace(raw)
if token == "" {
continue
}
if idx := strings.IndexByte(token, ';'); idx >= 0 {
token = utils.TrimSpace(token[:idx])
}
if token == "" {
continue
}
if utils.EqualFold(token, "identity") {
continue
}
hasEncoding = true
}
return hasEncoding
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does hasTransferEncodingBody() do?
hasTransferEncodingBody() is a function in the fiber codebase, defined in ctx.go.
Where is hasTransferEncodingBody() defined?
hasTransferEncodingBody() is defined in ctx.go at line 443.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free