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

Function newLogResponseWriter

examples/internal/gateway/handlers.go:91–93  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

89}
90
91func newLogResponseWriter(w http.ResponseWriter) *logResponseWriter {
92 return &logResponseWriter{w, http.StatusOK}
93}
94
95// logRequestBody logs the request body when the response status code is not 200.
96// This addresses the issue of being unable to retrieve the request body in the customErrorHandler middleware.

Callers 1

logRequestBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected