1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:17:36 +00:00

AK: Add a new, spec-compliant URLParser

This adds a new URL parser, which aims to be compliant with the URL
specification (https://url.spec.whatwg.org/). It also contains a
rudimentary data URL parser.
This commit is contained in:
Max Wipfli 2021-05-25 22:13:15 +02:00 committed by Andreas Kling
parent 8a938a3e25
commit 0d0ed4962f
5 changed files with 744 additions and 0 deletions

View file

@ -15,6 +15,8 @@ namespace AK {
// NOTE: The member variables cannot contain any percent encoded sequences.
// The URL parser automatically decodes those sequences and the the serialize() method will re-encode them as necessary.
class URL {
friend class URLParser;
public:
enum class PercentEncodeSet {
C0Control,