request

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 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