Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-07-01 02:20:09 +0300
committerAnna Henningsen <anna@addaleax.net>2020-07-16 01:25:47 +0300
commite876c0c308bb98ed08ec9cae9f04a65a48517be5 (patch)
treee542873e53ea1a07e794394e3f3d14f070e97e99 /src/node_http_common.h
parent9ae849120429870af17fbba5ed8c75a215daf899 (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.h2
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;