mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:37:43 +00:00
LibWeb: Move Fetch::collect_an_http_quoted_string() into HTTP.{cpp,h}
The Fetch spec is too big to have a generic AbstractOperations.{cpp,h} file, so let's keep AOs in their section-specific files.
This commit is contained in:
parent
e3798886ed
commit
fad69fcacd
6 changed files with 11 additions and 25 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -19,4 +20,11 @@ inline constexpr StringView HTTP_TAB_OR_SPACE = "\t "sv;
|
|||
// HTTP whitespace is U+000A LF, U+000D CR, or an HTTP tab or space.
|
||||
inline constexpr StringView HTTP_WHITESPACE = "\n\r\t "sv;
|
||||
|
||||
enum class HttpQuotedStringExtractValue {
|
||||
No,
|
||||
Yes,
|
||||
};
|
||||
|
||||
String collect_an_http_quoted_string(GenericLexer& lexer, HttpQuotedStringExtractValue extract_value);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue