request

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InputControlHeaders are sent by the Gateway/User to control EPP behavior.
	// We must extract these, then strip them so they don't leak to the backend.
	InputControlHeaders = lowerHeaderNames(
		metadata.FlowFairnessIDKey,
		metadata.ObjectiveKey,
		metadata.ModelNameRewriteKey,
		metadata.SubsetFilterKey,
		metadata.TTFTSLOHeaderKey,
		metadata.TPOTSLOHeaderKey,
	)

	// OutputInjectionHeaders are headers EPP injects for the backend.
	// If the user sends these, they must be stripped to prevent ambiguity.
	OutputInjectionHeaders = addLowerHeaders(
		lowerHeaderNames(
			metadata.DestinationEndpointKey,
			metadata.DestinationEndpointServedKey,
		),
		errcommon.RequestDroppedReasonHeaderKey,
	)

	// ProtocolHeaders are managed by the proxy layer (Envoy/EPP).
	ProtocolHeaders = sets.New("content-length")
)

Functions

func IsSheddable

func IsSheddable(priority int) bool

IsSheddable determines if a request is considered sheddable based on its priority.

func IsSystemOwnedHeader

func IsSystemOwnedHeader(key string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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