Is your feature request related to a problem? Please describe.
|
const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders'); |
Currently to use the symbol we need to import it from the http2 module. A better solution would be to use Symbol.for like in the case of custom inspect symbol.
Describe the solution you'd like
-const kSensitiveHeaders = Symbol('nodejs.http2.sensitiveHeaders');
+const kSensitiveHeaders = Symbol.for('nodejs.http2.sensitiveHeaders');
Describe alternatives you've considered
None.
Is your feature request related to a problem? Please describe.
node/lib/internal/http2/util.js
Line 35 in 6eec858
Currently to use the symbol we need to import it from the
http2module. A better solution would be to useSymbol.forlike in the case of custom inspect symbol.Describe the solution you'd like
Describe alternatives you've considered
None.