redirectFixedPath() — gin Function Reference
Architecture documentation for the redirectFixedPath() function in gin.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 80b1d193_8c18_8a4b_2f6c_ba930413c631["redirectFixedPath()"] 466cd829_a704_bc42_f2bb_a07bb48488bd["handleHTTPRequest()"] 466cd829_a704_bc42_f2bb_a07bb48488bd -->|calls| 80b1d193_8c18_8a4b_2f6c_ba930413c631 0c112b3d_e60f_10d6_31b8_9f700dd18e61["redirectRequest()"] 80b1d193_8c18_8a4b_2f6c_ba930413c631 -->|calls| 0c112b3d_e60f_10d6_31b8_9f700dd18e61 style 80b1d193_8c18_8a4b_2f6c_ba930413c631 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
gin.go lines 808–818
func redirectFixedPath(c *Context, root *node, trailingSlash bool) bool {
req := c.Request
rPath := req.URL.Path
if fixedPath, ok := root.findCaseInsensitivePath(cleanPath(rPath), trailingSlash); ok {
req.URL.Path = bytesconv.BytesToString(fixedPath)
redirectRequest(c)
return true
}
return false
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does redirectFixedPath() do?
redirectFixedPath() is a function in the gin codebase.
What does redirectFixedPath() call?
redirectFixedPath() calls 1 function(s): redirectRequest.
What calls redirectFixedPath()?
redirectFixedPath() is called by 1 function(s): handleHTTPRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free