host

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRequest

func NormalizeRequest(value string) string

NormalizeRequest lowercases a request host, strips an explicit port, and trims a trailing dot.

func PatternHasPort

func PatternHasPort(pattern string) bool

PatternHasPort reports whether a host pattern contains a port separator. Colons inside braces, such as "{name:regex}", are treated as part of the pattern, and colons inside brackets, such as an IPv6 literal "[::1]", are treated as part of the address — neither counts as a port separator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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