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
commit 29d90ccf3b
Notes: sideshowbarker 2024-07-17 09:37:30 +09:00
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);