addr

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentURLWithSuffix

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

func GetSourceConnAddress(r *http.Request) string

GetSourceConnAddress returns the IP address of the HTTP connection.

func GetSourceHost

func GetSourceHost(r *http.Request) string

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

func GetTargetURL

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