MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / handleForwardResponseTrailerHeader

Function handleForwardResponseTrailerHeader

runtime/handler.go:131–137  ·  view source on GitHub ↗
(w http.ResponseWriter, mux *ServeMux, md ServerMetadata)

Source from the content-addressed store, hash-verified

129}
130
131func handleForwardResponseTrailerHeader(w http.ResponseWriter, mux *ServeMux, md ServerMetadata) {
132 for k := range md.TrailerMD {
133 if h, ok := mux.outgoingTrailerMatcher(k); ok {
134 w.Header().Add("Trailer", textproto.CanonicalMIMEHeaderKey(h))
135 }
136 }
137}
138
139func handleForwardResponseTrailer(w http.ResponseWriter, mux *ServeMux, md ServerMetadata) {
140 for k, vs := range md.TrailerMD {

Callers 2

ForwardResponseMessageFunction · 0.85
DefaultHTTPErrorHandlerFunction · 0.85

Calls 1

HeaderMethod · 0.80

Tested by

no test coverage detected