mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:17:44 +00:00
LibWeb: Add spec link for Web::URL::url_decode
This commit is contained in:
parent
be9fcaf92d
commit
e99c0ddb0e
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ ErrorOr<String> url_encode(Vector<QueryParam> const& pairs, AK::URL::PercentEnco
|
||||||
return builder.to_string();
|
return builder.to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://url.spec.whatwg.org/#concept-urlencoded-parser
|
||||||
|
// The application/x-www-form-urlencoded parser takes a byte sequence input, and then runs these steps:
|
||||||
ErrorOr<Vector<QueryParam>> url_decode(StringView input)
|
ErrorOr<Vector<QueryParam>> url_decode(StringView input)
|
||||||
{
|
{
|
||||||
// 1. Let sequences be the result of splitting input on 0x26 (&).
|
// 1. Let sequences be the result of splitting input on 0x26 (&).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue