You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The sensitiveHeaders HTTP2 symbol should be initialized via Symbol.for instead #36282
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.
Global symbols should be preferred when a developer-facing interface is needed to allow behavior customization, i.e., metaprogramming.
After trying to read the related Issue (#34091) and Pull Request(#34145).
I think that sensitiveHeaders is a feature that developers are using in the http2 module, not a developer-facing interface, and naming it nodejs.http2.sensitiveHeaders may be a mistake.
Details still need to be explained by @addaleax , if this is a mistake, I will file a Pull Request to fix it.
Global symbols should be preferred when a developer-facing interface is needed to allow behavior customization, i.e., metaprogramming.
That's exactly the case here. If you declare the symbol in your headers object then the headers in that array won't be compressed. It's custom behavior, isn't it?
I think that sensitiveHeaders is a feature that developers are using in the http2 module, not a developer-facing interface
Following your thinking, let's revert nodejs.util.promisify.custom and nodejs.util.inspect.custom, because developers are using it in the util module.
A module is an interface. API stands for Application Programming Interface.
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.
Activity
Lxxyx commentedon Nov 27, 2020
In the documentation(https://github.com/nodejs/node/blob/master/doc/guides/using-symbols.md), there are references to how global Symbols are used.
After trying to read the related Issue (#34091) and Pull Request(#34145).
I think that sensitiveHeaders is a feature that developers are using in the http2 module, not a developer-facing interface, and naming it
nodejs.http2.sensitiveHeadersmay be a mistake.Details still need to be explained by @addaleax , if this is a mistake, I will file a Pull Request to fix it.
szmarczak commentedon Nov 27, 2020
That's exactly the case here. If you declare the symbol in your headers object then the headers in that array won't be compressed. It's custom behavior, isn't it?
Following your thinking, let's revert
nodejs.util.promisify.customandnodejs.util.inspect.custom, because developers are using it in theutilmodule.A module is an interface. API stands for Application Programming Interface.
github-actions commentedon Jun 27, 2026
This issue has been marked as stale due to 210 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.
github-actions commentedon Jul 28, 2026
This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.