http

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// XForwardedFor is the header key for the X-Forwarded-For header
	XForwardedFor = "X-Forwarded-For"
)

Variables

View Source
var (
	ErrInvalidRequestBody         = "invalid request body: %v"
	ErrNilRequestBody             = errors.New("request body cannot be nil")
	ErrInDevelopment              = errors.New("in development")
	ErrInvalidAuthorizationHeader = errors.New("invalid authorization header")
)

Functions

func GetClientIP added in v0.5.8

func GetClientIP(r *http.Request) string

GetClientIP returns the client's IP address from the request

Types

This section is empty.

Directories

Path Synopsis
jwt
middleware

Jump to

Keyboard shortcuts

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