mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 16:46:08 +00:00
LibWeb: Add definitions from '2.2.3. Statuses' in the Fetch spec
This commit is contained in:
parent
dd9bf10151
commit
1694279dd8
Notes:
sideshowbarker
2024-07-17 08:58:28 +09:00
Author: https://github.com/linusg
Commit: 1694279dd8
Pull-request: https://github.com/SerenityOS/serenity/pull/14568
Reviewed-by: https://github.com/trflynn89 ✅
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