xref: /aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/balsa/standard_header_map.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2021 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef QUICHE_BALSA_STANDARD_HEADER_MAP_H_
6 #define QUICHE_BALSA_STANDARD_HEADER_MAP_H_
7 
8 #include "absl/container/flat_hash_set.h"
9 #include "absl/strings/string_view.h"
10 #include "quiche/common/quiche_text_utils.h"
11 
12 namespace quiche {
13 
14 // This specifies an absl::flat_hash_set with case-insensitive lookup and
15 // hashing
16 using StandardHttpHeaderNameSet =
17     absl::flat_hash_set<absl::string_view, StringPieceCaseHash,
18                         StringPieceCaseEqual>;
19 
20 const StandardHttpHeaderNameSet& GetStandardHeaderSet();
21 
22 }  // namespace quiche
23 
24 #endif  // QUICHE_BALSA_STANDARD_HEADER_MAP_H_
25