Help us shape the future of Go! Take the 2026 Go Developer Survey

hostcase

package
v1.4.15 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package hostcase supplies the case normalization shared by HTTP allowlists. Purpose: keep Host and Origin comparison limited to ASCII case folding. Inputs: raw host or origin strings. Outputs: strings with A-Z lowercased. Constraints: preserve every other byte, including non-ASCII characters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LowerASCII

func LowerASCII(s string) string

LowerASCII lowercases A-Z only. Unicode-aware folding would make a Kelvin sign equal "k", allowing non-ASCII hosts to match ASCII allowlist entries.

Types

This section is empty.

Jump to

Keyboard shortcuts

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