Closed
Description
handleForwardResponseOptions is called by both ForwardResponseStream and ForwardResponseMessage but not DefaultHTTPError. Is there a reason why? Is it intended?
FYI: handleForwardResponseServerMetadata
, handleForwardResponseTrailerHeader
and handleForwardResponseTrailer
are called by ForwardResponseMessage
and DefaultHTTPError
.
Steps you follow to reproduce the error:
- Register a forwardResponseOption:
mux := runtime.NewServeMux(runtime.WithForwardResponseOption(myCallback))
- Return an error from GRPC handler.
What did you expect to happen instead:
myCallback
gets called on all response-related functions like ForwardResponseMessage
, ForwardResponseStream
and DefaultHTTPError
.