mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00

This namespace will be used for all interfaces defined in the URL specification, like URL and URLSearchParams. This has the unfortunate side-effect of requiring us to use the fully qualified AK::URL name whenever we want to refer to the AK class, so this commit also fixes all such references.
21 lines
387 B
C++
21 lines
387 B
C++
/*
|
|
* Copyright (c) 2021, Idan Horowitz <idan.horowitz@serenityos.org>
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
#include <AK/Vector.h>
|
|
|
|
namespace Web::URL {
|
|
|
|
struct QueryParam {
|
|
String name;
|
|
String value;
|
|
};
|
|
String url_encode(const Vector<QueryParam>&, AK::URL::PercentEncodeSet);
|
|
|
|
}
|