diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-07-01 02:20:09 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-07-16 01:25:47 +0300 |
commit | e876c0c308bb98ed08ec9cae9f04a65a48517be5 (patch) | |
tree | e542873e53ea1a07e794394e3f3d14f070e97e99 /src/node_http_common.h | |
parent | 9ae849120429870af17fbba5ed8c75a215daf899 (diff) |
http2: add support for sensitive headers
Add support for “sensitive”/“never-indexed” HTTP2 headers.
Fixes: https://github.com/nodejs/node/issues/34091
PR-URL: https://github.com/nodejs/node/pull/34145
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'src/node_http_common.h')
-rw-r--r-- | src/node_http_common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_http_common.h b/src/node_http_common.h index c7e4d34af24..8017c0d7aad 100644 --- a/src/node_http_common.h +++ b/src/node_http_common.h @@ -460,6 +460,7 @@ struct NgHeaderBase : public MemoryRetainer { virtual std::string name() const = 0; virtual std::string value() const = 0; virtual size_t length() const = 0; + virtual uint8_t flags() const = 0; virtual std::string ToString() const; }; @@ -505,6 +506,7 @@ class NgHeader final : public NgHeaderBase<typename T::allocator_t> { inline std::string name() const override; inline std::string value() const override; inline size_t length() const override; + inline uint8_t flags() const override; void MemoryInfo(MemoryTracker* tracker) const override; |