Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultUserAgent is the default User-Agent header value used in HTTP requests. DefaultUserAgent string // ReqHeaderProc is a callback function that allows users to modify // the HTTP request headers before sending the request. ReqHeaderProc func(req *http.Request) Client = &http.Client{ Timeout: 30 * time.Second, } )
Functions ¶
func Get ¶
Get sends a GET request to the specified URL.
Security: Server-Side Request Forgery (SSRF) The function accepts arbitrary URLs without validation. An attacker can provide URLs to internal network resources (e.g., http://localhost:6379, http://169.254.169.254/latest/meta-data/) to scan internal networks, access cloud metadata services, or interact with internal APIs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.