headerlist

package
v1.10.0-alpha.10 Latest Latest
Warning

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

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

Documentation

Overview

Package headerlist owns schema-based HTTP simple collection framing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(lines []string, present bool) []string

Decode combines ordered physical lines and discards empty list members as required by RFC 9110. It preserves absent versus present empty collections. Quotes are literal characters, not an escape for the comma delimiter.

func Encode

func Encode(items []string) (string, error)

Encode frames logical items as a simple comma list, rejecting lossy values. The caller owns field presence; both nil and empty items encode as empty text.

func ValidateItem

func ValidateItem(item string) error

ValidateItem admits values whose identity survives simple header framing. Errors describe the restriction without including potentially secret values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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