Documentation
¶
Index ¶
- Variables
- func HandleForwardResponseServerMetadata(w http.ResponseWriter, md metadata.MD)
- func HandleForwardResponseTrailer(w http.ResponseWriter, md metadata.MD)
- func HandleForwardResponseTrailerHeader(w http.ResponseWriter, md metadata.MD)
- func InComingHeaderMatcher(key string) (string, bool)
- func OutgoingHeaderMatcher(key string) (string, bool)
- func Response(ctx context.Context, writer http.ResponseWriter, message proto.Message) error
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 OutgoingHeaderMatcher ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.