gateway

package
v0.16.13 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: MIT, Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InComingHeader = []string{"Accept",
	"Accept-Charset",
	"Accept-Language",
	"Accept-Ranges",

	"Cache-Control",
	"Content-Type",

	"Date",
	"Expect",
	"From",
	"Host",
	"If-Match",
	"If-Modified-Since",
	"If-None-Match",
	"If-Schedule-Key-Match",
	"If-Unmodified-Since",
	"Max-Forwards",
	"Origin",
	"Pragma",
	"Referer",
	"User-Agent",
	"Via",
	"Warning",
}
View Source
var OutGoingHeader = []string{
	consts.HeaderSetCookie,
}
View Source
var OutgoingHeader = []string{httpi.HeaderSetCookie}

Functions

func HandleForwardResponseServerMetadata

func HandleForwardResponseServerMetadata(w http.ResponseWriter, md metadata.MD)

func HandleForwardResponseTrailer

func HandleForwardResponseTrailer(w http.ResponseWriter, md metadata.MD)

func HandleForwardResponseTrailerHeader

func HandleForwardResponseTrailerHeader(w http.ResponseWriter, md metadata.MD)

func InComingHeaderMatcher added in v0.13.10

func InComingHeaderMatcher(key string) (string, bool)

func OutgoingHeaderMatcher

func OutgoingHeaderMatcher(key string) (string, bool)

func Response added in v0.3.9

func Response(ctx context.Context, writer http.ResponseWriter, message proto.Message) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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