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:
parent
4629f2e4ad
commit
de19dcf81a
2 changed files with 43 additions and 1 deletions
|
@ -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&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue