Serenity Operating System
1/*
2 * Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
3 *
4 * SPDX-License-Identifier: BSD-2-Clause
5 */
6
7#pragma once
8
9#include <AK/Forward.h>
10
11namespace Web::Fetch::Infrastructure {
12
13[[nodiscard]] bool is_method(ReadonlyBytes);
14[[nodiscard]] bool is_cors_safelisted_method(ReadonlyBytes);
15[[nodiscard]] bool is_forbidden_method(ReadonlyBytes);
16[[nodiscard]] ErrorOr<ByteBuffer> normalize_method(ReadonlyBytes);
17
18}