mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
LibWeb: Move url_{encode, decode} to URL/URLSearchParams.{h, cpp}
The new URL built-in that will reside in URL.{h, cpp} will have an URLSearchParams member, which means it has to include its header, and as such URLSearchParams.h can't include URL's header, which it needs as it uses the url_{encode, decode} functions.
This commit is contained in:
parent
23997005cf
commit
af5b62d8cd
4 changed files with 64 additions and 69 deletions
|
@ -7,17 +7,5 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/String.h>
|
||||
#include <AK/URL.h>
|
||||
#include <AK/Vector.h>
|
||||
|
||||
namespace Web::URL {
|
||||
|
||||
struct QueryParam {
|
||||
String name;
|
||||
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