mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Add & use 'HTTP tab or space' from '2.2. HTTP' in the Fetch spec
This commit is contained in:
parent
7c2c9b6859
commit
df3e25f1bb
2 changed files with 20 additions and 3 deletions
18
Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h
Normal file
18
Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace Web::Fetch {
|
||||
|
||||
// https://fetch.spec.whatwg.org/#http-tab-or-space
|
||||
// An HTTP tab or space is U+0009 TAB or U+0020 SPACE.
|
||||
inline constexpr StringView HTTP_TAB_OR_SPACE = "\t "sv;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue