xforward

package
v0.21.19 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Deprecated, use filters.XforwardName instead
	Name = filters.XforwardName

	// Deprecated, use filters.XforwardFirstName instead
	NameFirst = filters.XforwardFirstName
)

Variables

This section is empty.

Functions

func New

func New() filters.Spec

New creates a specification for the xforward filter that appends the remote IP of the incoming request to the X-Forwarded-For header, and sets the X-Forwarded-Host header to the value of the incoming request's Host header.

func NewFirst

func NewFirst() filters.Spec

NewFirst creates a specification for the xforwardFirst filter that prepends the remote IP of the incoming request to the X-Forwarded-For header, and sets the X-Forwarded-Host header to the value of the incoming request's Host header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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