Statuses.h 458 B

123456789101112131415161718192021
  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. // https://fetch.spec.whatwg.org/#concept-status
  10. // A status is an integer in the range 0 to 999, inclusive.
  11. using Status = u16;
  12. [[nodiscard]] bool is_null_body_status(Status);
  13. [[nodiscard]] bool is_ok_status(Status);
  14. [[nodiscard]] bool is_redirect_status(Status);
  15. }