package
8.17.3+incompatible
Repository: https://github.com/elastic/apm-server.git
Documentation: pkg.go.dev
# Functions
ClientAddrFromHeaders returns the IP address, and optionally port, of the client for an HTTP request from one of various headers in order: Forwarded, X-Real-IP, X-Forwarded-For.
SplitAddrPort splits a network address of the form "host", "host:port", "[host]:port" or "[host]:port" into a netip.Addr and port.