Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRemoteHostInfo ¶ added in v0.4.0
GetRemoteHostInfo extracts the remote host information from the request, inspecting common proxy headers like CF-Connecting-IP, X-Real-IP, and X-Forwarded-For. It returns a formatted string with the remote address and user agent.
func SliceToMap ¶
Slice2Map takes a slice of header strings in "key:value" format and returns a map. Returns an error if any header has an invalid format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.