private static void stripTransportDetails ( Metadata metadata ) { metadata . discardAll ( HTTP2_STATUS ) ; metadata . discardAll ( InternalStatus . CODE_KEY ) ; metadata . discardAll ( InternalStatus . MESSAGE_KEY ) ; }
Strip HTTP transport implementation details so they don t leak via metadata into the application layer .