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

LibWeb: Implement the legacy extracting an encoding AO

This commit is contained in:
Timothy Flynn 2023-05-10 16:26:51 -04:00 committed by Andreas Kling
parent 9701128145
commit 29d90ccf3b
2 changed files with 25 additions and 0 deletions

View file

@ -70,6 +70,7 @@ struct RangeHeaderValue {
struct ExtractHeaderParseFailure {
};
[[nodiscard]] StringView legacy_extract_an_encoding(Optional<MimeSniff::MimeType> const& mime_type, StringView fallback_encoding);
[[nodiscard]] ErrorOr<Optional<Vector<String>>> get_decode_and_split_header_value(ReadonlyBytes);
[[nodiscard]] ErrorOr<OrderedHashTable<ByteBuffer>> convert_header_names_to_a_sorted_lowercase_set(Span<ReadonlyBytes>);
[[nodiscard]] bool is_header_name(ReadonlyBytes);