2022-10-23 21:58:18 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
2025-07-19 19:35:33 -07:00
|
|
|
#include <LibWeb/Export.h>
|
2022-10-23 21:58:18 +01:00
|
|
|
#include <LibWeb/Fetch/Infrastructure/RequestOrResponseBlocking.h>
|
|
|
|
|
#include <LibWeb/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::Fetch::Infrastructure {
|
|
|
|
|
|
2024-04-26 13:24:20 -04:00
|
|
|
[[nodiscard]] bool determine_nosniff(HeaderList const&);
|
2025-07-19 19:35:33 -07:00
|
|
|
[[nodiscard]] WEB_API RequestOrResponseBlocking should_response_to_request_be_blocked_due_to_nosniff(Response const&, Request const&);
|
2022-10-23 21:58:18 +01:00
|
|
|
|
|
|
|
|
}
|