composeRedirectURL() — fiber Function Reference
Architecture documentation for the composeRedirectURL() function in transport.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD af9bc46a_b42c_7b43_469d_8b3a6d336038["composeRedirectURL()"] cfe2515b_ab6b_e576_a031_f986d4835acf["transport.go"] af9bc46a_b42c_7b43_469d_8b3a6d336038 -->|defined in| cfe2515b_ab6b_e576_a031_f986d4835acf 973b023d_d4d8_36a4_1c37_32dd70b4b0c5["doRedirectsWithClient()"] 973b023d_d4d8_36a4_1c37_32dd70b4b0c5 -->|calls| af9bc46a_b42c_7b43_469d_8b3a6d336038 style af9bc46a_b42c_7b43_469d_8b3a6d336038 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
client/transport.go lines 354–377
func composeRedirectURL(base string, location []byte, disablePathNormalizing bool) (string, error) {
for _, b := range location {
if b < 0x20 || b == 0x7f {
return "", fasthttp.ErrorInvalidURI
}
}
uri := fasthttp.AcquireURI()
defer fasthttp.ReleaseURI(uri)
uri.Update(base)
uri.UpdateBytes(location)
uri.DisablePathNormalizing = disablePathNormalizing
if scheme := uri.Scheme(); len(scheme) > 0 && !bytes.EqualFold(scheme, httpScheme) && !bytes.EqualFold(scheme, httpsScheme) {
return "", fasthttp.ErrorInvalidURI
}
if len(uri.Scheme()) > 0 && len(uri.Host()) == 0 {
return "", fasthttp.ErrorInvalidURI
}
return uri.String(), nil
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does composeRedirectURL() do?
composeRedirectURL() is a function in the fiber codebase, defined in client/transport.go.
Where is composeRedirectURL() defined?
composeRedirectURL() is defined in client/transport.go at line 354.
What calls composeRedirectURL()?
composeRedirectURL() is called by 1 function(s): doRedirectsWithClient.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free