2022-07-10 19:28:47 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-24 18:35:55 -05:00
|
|
|
#include <AK/ByteString.h>
|
|
|
|
|
#include <AK/StringView.h>
|
2022-07-10 19:28:47 +02:00
|
|
|
|
2025-11-26 14:13:23 -05:00
|
|
|
namespace HTTP {
|
2022-07-10 19:28:47 +02:00
|
|
|
|
2025-11-24 18:35:55 -05:00
|
|
|
[[nodiscard]] bool is_method(StringView);
|
2025-11-26 14:13:23 -05:00
|
|
|
[[nodiscard]] bool is_cors_safelisted_method(StringView);
|
2025-11-24 18:35:55 -05:00
|
|
|
[[nodiscard]] bool is_forbidden_method(StringView);
|
|
|
|
|
[[nodiscard]] ByteString normalize_method(StringView);
|
2022-07-10 19:28:47 +02:00
|
|
|
|
|
|
|
|
}
|