header

package
v0.0.0-...-241046a Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataHeaderPrefix = "Grpc-Metadata-"
	MetadataPrefix       = "grpcgateway-"
)

Variables

This section is empty.

Functions

func DefaultHeaderMatcher

func DefaultHeaderMatcher(key string) (string, bool)

func HttpHeadersToGRPCMetadata

func HttpHeadersToGRPCMetadata(headers http.Header) metadata.MD

HttpHeadersToGRPCMetadata converts HTTP headers to gRPC metadata.

func ProcessHeaders

func ProcessHeaders(header http.Header) []string

ProcessHeaders builds the headers for the gateway from HTTP headers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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