resetContextForClientIPTests() — gin Function Reference
Architecture documentation for the resetContextForClientIPTests() function in context_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD dd5266c3_6188_12a2_87c2_6b820ea78ba6["resetContextForClientIPTests()"] ebe0ae48_a62b_a38f_5bac_5bbbd96fc508["context_test.go"] dd5266c3_6188_12a2_87c2_6b820ea78ba6 -->|defined in| ebe0ae48_a62b_a38f_5bac_5bbbd96fc508 0de6875c_cc34_fa1b_0085_a8ea474179bc["TestContextClientIP()"] 0de6875c_cc34_fa1b_0085_a8ea474179bc -->|calls| dd5266c3_6188_12a2_87c2_6b820ea78ba6 style dd5266c3_6188_12a2_87c2_6b820ea78ba6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
context_test.go lines 2087–2097
func resetContextForClientIPTests(c *Context) {
c.Request.Header.Set("X-Real-IP", " 10.10.10.10 ")
c.Request.Header.Set("X-Forwarded-For", " 20.20.20.20, 30.30.30.30")
c.Request.Header.Set("X-Appengine-Remote-Addr", "50.50.50.50")
c.Request.Header.Set("CF-Connecting-IP", "60.60.60.60")
c.Request.Header.Set("Fly-Client-IP", "70.70.70.70")
c.Request.RemoteAddr = " 40.40.40.40:42123 "
c.engine.TrustedPlatform = ""
c.engine.trustedCIDRs = defaultTrustedCIDRs
c.engine.AppEngine = false
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does resetContextForClientIPTests() do?
resetContextForClientIPTests() is a function in the gin codebase, defined in context_test.go.
Where is resetContextForClientIPTests() defined?
resetContextForClientIPTests() is defined in context_test.go at line 2087.
What calls resetContextForClientIPTests()?
resetContextForClientIPTests() is called by 1 function(s): TestContextClientIP.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free