2025-11-26 13:32:39 -05:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Optional.h>
|
2025-11-26 14:13:23 -05:00
|
|
|
#include <LibHTTP/Forward.h>
|
2025-11-26 13:32:39 -05:00
|
|
|
#include <LibWeb/MimeSniff/MimeType.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Fetch::Infrastructure {
|
|
|
|
|
|
2025-11-26 14:13:23 -05:00
|
|
|
Optional<MimeSniff::MimeType> extract_mime_type(HTTP::HeaderList const&);
|
2025-11-26 13:32:39 -05:00
|
|
|
StringView legacy_extract_an_encoding(Optional<MimeSniff::MimeType> const& mime_type, StringView fallback_encoding);
|
|
|
|
|
|
|
|
|
|
}
|