1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

LibWeb: Implement HeaderList::sort_and_combine()

This commit is contained in:
Linus Groh 2022-07-19 00:19:14 +01:00
parent bad6ad8861
commit b5ab1f6b4a
2 changed files with 32 additions and 2 deletions

View file

@ -37,6 +37,7 @@ public:
void delete_(ReadonlyBytes name);
[[nodiscard]] ErrorOr<void> set(Header);
[[nodiscard]] ErrorOr<void> combine(Header);
[[nodiscard]] ErrorOr<Vector<Header>> sort_and_combine() const;
};
[[nodiscard]] ErrorOr<OrderedHashTable<ByteBuffer>> convert_header_names_to_a_sorted_lowercase_set(Span<ReadonlyBytes>);