Home / Function/ secureRequestDump() — gin Function Reference

secureRequestDump() — gin Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  09ec5a23_fd25_47c3_2acf_ade5bc0dbbb2["secureRequestDump()"]
  a42c9a57_9a95_764b_260b_2ead107d7770["CustomRecoveryWithWriter()"]
  a42c9a57_9a95_764b_260b_2ead107d7770 -->|calls| 09ec5a23_fd25_47c3_2acf_ade5bc0dbbb2
  style 09ec5a23_fd25_47c3_2acf_ade5bc0dbbb2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

recovery.go lines 98–107

func secureRequestDump(r *http.Request) string {
	httpRequest, _ := httputil.DumpRequest(r, false)
	lines := strings.Split(bytesconv.BytesToString(httpRequest), "\r\n")
	for i, line := range lines {
		if strings.HasPrefix(line, "Authorization:") {
			lines[i] = "Authorization: *"
		}
	}
	return strings.Join(lines, "\r\n")
}

Domain

Subdomains

Frequently Asked Questions

What does secureRequestDump() do?
secureRequestDump() is a function in the gin codebase.
What calls secureRequestDump()?
secureRequestDump() is called by 1 function(s): CustomRecoveryWithWriter.

Analyze Your Own Codebase

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

Try Supermodel Free