request

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAddressIsNotValid = errors.New("address is not valid")

Functions

func IPFromRequest

func IPFromRequest(c fiber.Ctx) (net.IP, error)

IPFromRequest extracts the real client IP from a Fiber request.

func IPStringFromRequest added in v1.1.0

func IPStringFromRequest(c fiber.Ctx) string

IPStringFromRequest returns the request IP as a string.

func IsPrivateAddress

func IsPrivateAddress(address string) (bool, error)

IsPrivateAddress checks whether address is loopback, private, or link-local.

Types

This section is empty.

Jump to

Keyboard shortcuts

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