addr

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentURLWithSuffix added in v1.0.24

func GetCurrentURLWithSuffix(r *http.Request, suffix string) (string, error)

GetCurrentURLWithSuffix returns current URL based on the provided suffux.

func GetSourceAddress

func GetSourceAddress(r *http.Request) string

GetSourceAddress returns the IP address of the request.

func GetSourceConnAddress added in v1.0.7

func GetSourceConnAddress(r *http.Request) string

GetSourceConnAddress returns the IP address of the HTTP connection.

func GetSourceHost added in v1.0.14

func GetSourceHost(r *http.Request) string

GetSourceHost returns the host or host:port of the request.

func GetTargetURL added in v1.0.14

func GetTargetURL(r *http.Request) string

GetTargetURL returns the URL the user landed on.

Types

This section is empty.

Jump to

Keyboard shortcuts

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