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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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