1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibWeb: Add URL::url_decode for decoding form url encoded parameters

This commit is contained in:
Idan Horowitz 2021-09-13 00:59:12 +03:00 committed by Andreas Kling
parent 4629f2e4ad
commit de19dcf81a
2 changed files with 43 additions and 1 deletions

View file

@ -8,6 +8,7 @@
#pragma once
#include <AK/String.h>
#include <AK/URL.h>
#include <AK/Vector.h>
namespace Web::URL {
@ -17,5 +18,6 @@ struct QueryParam {
String value;
};
String url_encode(const Vector<QueryParam>&, AK::URL::PercentEncodeSet);
Vector<QueryParam> url_decode(StringView const&);
}