ipaddr

package
v1.14.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XForwardedFor  = "X-Forwarded-For"
	CFConnectingIp = "Cf-Connecting-IP"
	CFRealIp       = "Cf-Real-IP"
)

Variables

This section is empty.

Functions

func GetRequestIPAddress

func GetRequestIPAddress(r *http.Request) string

func HttpCloudflareConnectingIP

func HttpCloudflareConnectingIP(r *http.Request) string

HttpCloudflareConnectingIP returns CF-Connecting-IP Header value if not empty

func HttpCloudflareRealIP

func HttpCloudflareRealIP(r *http.Request) string

HttpCloudflareRealIP returns CF-Real-IP Header value if not empty

func HttpRequestFootprint

func HttpRequestFootprint(r *http.Request) string

func HttpXForwardedFor

func HttpXForwardedFor(r *http.Request) string

HttpForwardedFor returns X-Forwarded-For Header value if not empty

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL