headerorder

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package headerorder exposes the common wire-header sorter to protocol adapters maintained outside the HTTP module. All protocols share one implementation.

Index

Constants

View Source
const (
	HeaderOrderKey  = headerorder.HeaderOrderKey
	PHeaderOrderKey = headerorder.PHeaderOrderKey
	HeaderCaseKey   = headerorder.HeaderCaseKey
)

Variables

This section is empty.

Functions

func Indices

func Indices(names []string) map[string]int

func IsMetadataKey

func IsMetadataKey(key string) bool

IsMetadataKey identifies private ordering and spelling controls, which must be excluded from field validation and encoding by every protocol adapter.

Types

type Field

type Field = headerorder.Field

func Sorted

func Sorted(h map[string][]string, order map[string]int, exclude map[string]bool) []Field

Sorted returns independent ordering without modifying headers or exclusions.

Jump to

Keyboard shortcuts

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