1
Fork 0
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:
Luke Wilde 2022-02-11 20:53:47 +00:00 committed by Andreas Kling
parent 2903c47ba0
commit 8cfeca5261
6 changed files with 342 additions and 0 deletions

View 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);
}