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