1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:57:44 +00:00

LibWeb: Implement Web::URL::url_encode closer to spec

This commit is contained in:
Shannon Booth 2023-06-25 14:15:24 +12:00 committed by Andreas Kling
parent 799c79cc5a
commit 55d59636ef
4 changed files with 45 additions and 23 deletions

View file

@ -16,7 +16,7 @@ struct QueryParam {
String name;
String value;
};
ErrorOr<String> url_encode(Vector<QueryParam> const&, AK::URL::PercentEncodeSet);
ErrorOr<String> url_encode(Vector<QueryParam> const&, StringView encoding = "UTF-8"sv);
ErrorOr<Vector<QueryParam>> url_decode(StringView);
class URLSearchParams : public Bindings::PlatformObject {