2022-07-10 19:28:47 +02: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-07-10 19:28:47 +02:00
|
|
|
|
2022-07-17 23:52:02 +01:00
|
|
|
namespace Web::Fetch::Infrastructure {
|
2022-07-10 19:28:47 +02:00
|
|
|
|
|
|
|
|
[[nodiscard]] bool is_method(ReadonlyBytes);
|
2025-07-19 19:35:33 -07:00
|
|
|
[[nodiscard]] WEB_API bool is_cors_safelisted_method(ReadonlyBytes);
|
2022-07-10 19:28:47 +02:00
|
|
|
[[nodiscard]] bool is_forbidden_method(ReadonlyBytes);
|
2024-04-26 13:26:55 -04:00
|
|
|
[[nodiscard]] ByteBuffer normalize_method(ReadonlyBytes);
|
2022-07-10 19:28:47 +02:00
|
|
|
|
|
|
|
|
}
|