mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibWeb: Implement spec-compliant MIME type struct and parser
This will be used by XHR to extract the Content-Type MIME type to retrieve the charset.
This commit is contained in:
parent
2903c47ba0
commit
8cfeca5261
6 changed files with 342 additions and 0 deletions
20
Userland/Libraries/LibWeb/Fetch/AbstractOperations.h
Normal file
20
Userland/Libraries/LibWeb/Fetch/AbstractOperations.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Luke Wilde <lukew@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Forward.h>
|
||||
|
||||
namespace Web::Fetch {
|
||||
|
||||
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