1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:38:10 +00:00

LibWeb: Add & use 'HTTP whitespace' from '2.2. HTTP' in the Fetch spec

We had two independent definitions of this already, both referring to
the Fetch spec.
This commit is contained in:
Linus Groh 2022-07-10 19:20:49 +02:00
parent df3e25f1bb
commit e3798886ed
4 changed files with 10 additions and 12 deletions

View file

@ -15,4 +15,8 @@ namespace Web::Fetch {
// An HTTP tab or space is U+0009 TAB or U+0020 SPACE.
inline constexpr StringView HTTP_TAB_OR_SPACE = "\t "sv;
// https://fetch.spec.whatwg.org/#http-whitespace
// HTTP whitespace is U+000A LF, U+000D CR, or an HTTP tab or space.
inline constexpr StringView HTTP_WHITESPACE = "\n\r\t "sv;
}