xforward

package
v0.13.37 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name of the "xforward" filter.
	Name = "xforward"

	// NameFirst is the name of the "xforwardFirst" filter.
	NameFirst = "xforwardFirst"
)

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