mdval

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IdempotencyKey         incomingHeaderKey = "x-idempotency-key"
	SessionTokenKey        incomingHeaderKey = "x-session-token"
	DebugAdjustedTimeKey   incomingHeaderKey = "x-debug-adjustment-timestamp"
	DebugSpoofingUserIDKey incomingHeaderKey = "x-debug-spoofing-uid"

	RespondTimestampKey outgoingHeaderKey = "x-respond-timestamp"
	ServerVersionKey    outgoingHeaderKey = "x-server-version"
)

Variables

This section is empty.

Functions

func SetOutgoingHeader

func SetOutgoingHeader(response connect.AnyResponse, md OutgoingHeaderMD)

func SetOutgoingTrailer

func SetOutgoingTrailer(response connect.AnyResponse, md OutgoingTrailerMD)

Types

type IncomingMD

type IncomingMD struct {
	// contains filtered or unexported fields
}

func NewIncomingMD

func NewIncomingMD(header http.Header) IncomingMD

func (IncomingMD) Get

func (i IncomingMD) Get(key incomingHeaderKey) (string, bool)

func (IncomingMD) Set

func (i IncomingMD) Set(key incomingHeaderKey, value string)

func (IncomingMD) ToMap

func (i IncomingMD) ToMap() map[incomingHeaderKey]string

type OutgoingHeaderMD

type OutgoingHeaderMD map[outgoingHeaderKey]string

type OutgoingTrailerMD

type OutgoingTrailerMD map[outgoingTrailerKey]string

Jump to

Keyboard shortcuts

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