What does "k" mean in http? #37724
-
I was reading http, and I found there is k words like below... What does "k" mean? Line 37 in bfa6e37 const kHeaders = Symbol('kHeaders');
const kHeadersCount = Symbol('kHeadersCount');
const kTrailers = Symbol('kTrailers');
const kTrailersCount = Symbol('kTrailersCount'); |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
it is probably inherited from the variable naming convention from Line 433 in bfa6e37 pls refer to hungarian notation for additional context. /cc @addaleax to see if there is a better explanation. |
Beta Was this translation helpful? Give feedback.
-
To add more niche knowledge onto the answer: |
Beta Was this translation helpful? Give feedback.
it is probably inherited from the variable naming convention from
v8
source - which usesk
prefix for variable names that are constants. For example:node/deps/v8/include/v8.h
Line 433 in bfa6e37
pls refer to hungarian notation for additional context.
/cc @addaleax to see if there is a better explanation.