Methods.h 420 B

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