Home / Function/ redirectFixedPath() — gin Function Reference

redirectFixedPath() — gin Function Reference

Architecture documentation for the redirectFixedPath() function in gin.go from the gin codebase.

Entity Profile

Dependency Diagram

graph TD
  063aa440_2813_b064_23e9_a76bf780c989["redirectFixedPath()"]
  22068897_9e6c_d28e_6b96_439ffa67fe6e["gin.go"]
  063aa440_2813_b064_23e9_a76bf780c989 -->|defined in| 22068897_9e6c_d28e_6b96_439ffa67fe6e
  4f102a15_dedc_8999_f9ea_96d2f4d455b4["redirectRequest()"]
  063aa440_2813_b064_23e9_a76bf780c989 -->|calls| 4f102a15_dedc_8999_f9ea_96d2f4d455b4
  style 063aa440_2813_b064_23e9_a76bf780c989 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

Defined In

Frequently Asked Questions

What does redirectFixedPath() do?
redirectFixedPath() is a function in the gin codebase, defined in gin.go.
Where is redirectFixedPath() defined?
redirectFixedPath() is defined in gin.go at line 808.
What does redirectFixedPath() call?
redirectFixedPath() calls 1 function(s): redirectRequest.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free