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
Click to show internal directories.
Click to hide internal directories.