request

package
v0.0.1-0...-6deec57 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IpAddress

func IpAddress(r *http.Request) (net.IP, error)

IpAddress returns client ip address from request Will check X-Real-IP and X-Forwarded-For header. Unless you have a trusted reverse proxy, you shouldn't use this function, the client can set headers to any arbitrary value it wants

Types

This section is empty.

Jump to

Keyboard shortcuts

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