2022-07-10 14:28:47 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
2025-07-19 23:35:33 -03:00
|
|
|
#include <LibWeb/Export.h>
|
2022-07-10 14:28:47 -03:00
|
|
|
|
2022-07-17 19:52:02 -03:00
|
|
|
namespace Web::Fetch::Infrastructure {
|
2022-07-10 14:28:47 -03:00
|
|
|
|
|
|
|
|
[[nodiscard]] bool is_method(ReadonlyBytes);
|
2025-07-19 23:35:33 -03:00
|
|
|
[[nodiscard]] WEB_API bool is_cors_safelisted_method(ReadonlyBytes);
|
2022-07-10 14:28:47 -03:00
|
|
|
[[nodiscard]] bool is_forbidden_method(ReadonlyBytes);
|
2024-04-26 14:26:55 -03:00
|
|
|
[[nodiscard]] ByteBuffer normalize_method(ReadonlyBytes);
|
2022-07-10 14:28:47 -03:00
|
|
|
|
|
|
|
|
}
|