mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:17:44 +00:00
LibWeb: Add definitions from '2.2.2. Headers' in the Fetch spec
This commit is contained in:
parent
9244f1697d
commit
dd9bf10151
5 changed files with 646 additions and 0 deletions
|
@ -20,6 +20,18 @@ 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;
|
||||
|
||||
// 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue