mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
parent
950e819ee7
commit
93712b24bf
Notes:
github-actions[bot]
2024-11-10 11:51:52 +00:00
Author: https://github.com/trflynn89
Commit: 93712b24bf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2256
Reviewed-by: https://github.com/sideshowbarker
4547 changed files with 104 additions and 113 deletions
42
Libraries/LibWeb/Fetch/Infrastructure/HTTP.h
Normal file
42
Libraries/LibWeb/Fetch/Infrastructure/HTTP.h
Normal file
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
#include <AK/StringView.h>
|
||||
|
||||
namespace Web::Fetch::Infrastructure {
|
||||
|
||||
// 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;
|
||||
|
||||
// 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;
|
||||
|
||||
// https://fetch.spec.whatwg.org/#http-newline-byte
|
||||
// An HTTP newline byte is 0x0A (LF) or 0x0D (CR).
|
||||
inline constexpr Array HTTP_NEWLINE_BYTES = {
|
||||
0x0A, 0x0D
|
||||
};
|
||||
|
||||
// https://fetch.spec.whatwg.org/#http-tab-or-space-byte
|
||||
// An HTTP tab or space byte is 0x09 (HT) or 0x20 (SP).
|
||||
inline constexpr Array HTTP_TAB_OR_SPACE_BYTES = {
|
||||
0x09, 0x20
|
||||
};
|
||||
|
||||
enum class HttpQuotedStringExtractValue {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
[[nodiscard]] String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value = HttpQuotedStringExtractValue::No);
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue