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

Function requestAcceptsTrailers

runtime/handler.go:212–215  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

210}
211
212func requestAcceptsTrailers(req *http.Request) bool {
213 te := req.Header.Get("TE")
214 return strings.Contains(strings.ToLower(te), "trailers")
215}
216
217func handleForwardResponseOptions(ctx context.Context, w http.ResponseWriter, resp proto.Message, opts []func(context.Context, http.ResponseWriter, proto.Message) error) error {
218 if len(opts) == 0 {

Callers 2

ForwardResponseMessageFunction · 0.85
DefaultHTTPErrorHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected