mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
LibWeb: Add definitions from '2.2.3. Statuses' in the Fetch spec
This commit is contained in:
parent
dd9bf10151
commit
1694279dd8
3 changed files with 60 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
|
||||
namespace Web::Fetch {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#concept-status
|
||||
// A status is an integer in the range 0 to 999, inclusive.
|
||||
using Status = u16;
|
||||
|
||||
[[nodiscard]] bool is_null_body_status(Status);
|
||||
[[nodiscard]] bool is_ok_status(Status);
|
||||
[[nodiscard]] bool is_redirect_status(Status);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue