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: 2 Imported by: 0

Documentation

Overview

Package headerorder implements the shared wire-header order for HTTP/1, HTTP/2 and HTTP/3.

Index

Constants

View Source
const (
	HeaderOrderKey  = "Header-Order:"
	PHeaderOrderKey = "PHeader-Order:"
	HeaderCaseKey   = "Header-Case:"
)

Variables

This section is empty.

Functions

func Indices

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

func IsMetadataKey

func IsMetadataKey(key string) bool

Types

type Field

type Field struct {
	Key    string
	Values []string
}

func Sorted

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

Sorted returns a fresh slice. It never changes the caller's header values, order or exclusion map. Metadata keys never appear in the result.

Jump to

Keyboard shortcuts

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