mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:07:35 +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:
parent
8a938a3e25
commit
0d0ed4962f
5 changed files with 744 additions and 0 deletions
2
AK/URL.h
2
AK/URL.h
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue