rfc

package
v0.21.240 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Name is the filter name
	// Deprecated, use filters.RfcPathName instead
	Name = filters.RfcPathName
	// NameHost is the filter name
	// Deprecated, use filters.RfcHostName instead
	NameHost = filters.RfcHostName
)

Variables

This section is empty.

Functions

func NewHost added in v0.13.113

func NewHost() filters.Spec

NewHost creates a filter specification for the rfcHost() filter, that removes a trailing dot in the host header.

See also the PatchHost documentation in the rfc package.

func NewPath

func NewPath() filters.Spec

NewPath creates a filter specification for the rfcPath() filter, that reencodes the reserved characters in the request path, if it detects that they are encoded in the raw path.

See also the PatchPath documentation in the rfc package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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