Documentation
¶
Overview ¶
Package validation provides functions for validating input data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateGroupName ¶
ValidateGroupName validates that a group name only contains allowed characters: lowercase alphanumeric, underscore, dash, and space. It also enforces no leading/trailing/consecutive spaces and disallows null bytes.
func ValidateHTTPHeaderName ¶ added in v0.5.2
ValidateHTTPHeaderName validates that a string is a valid HTTP header name per RFC 7230. It checks for CRLF injection, control characters, and ensures RFC token compliance.
func ValidateHTTPHeaderValue ¶ added in v0.5.2
ValidateHTTPHeaderValue validates that a string is a valid HTTP header value per RFC 7230. It checks for CRLF injection and control characters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.