urlutil

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSafeHost

func IsSafeHost(host string) bool

IsSafeHost returns true for bare hostnames with an optional port. It intentionally rejects URL control characters such as '/', '?', '#', and '@' so user-supplied host values cannot rewrite the outbound request URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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