LeviLamina
Loading...
Searching...
No Matches
Url.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Util::Url { struct Components; }
8namespace Util::Url { struct ComponentsView; }
9// clang-format on
10
11namespace Util::Url {
12// functions
13// NOLINTBEGIN
14MCAPI ::std::string addUrlSchemeIfNotPresent(::std::string const& url, ::std::string const& scheme);
15
16MCAPI ::std::string anonymizeIPAddress(::std::string const& ipAddress);
17
18MCAPI ::std::string anonymizeIPv6Address(::std::string const& ipAddress);
19
20MCAPI bool isValidIP(::std::string_view ipAddrStr, bool considerIPv4Valid, bool considerIPv6Valid);
21
22MCAPI ::Util::Url::ComponentsView parseUrl(::std::string_view url);
23
24MCAPI ::std::string urlEncode(::std::string_view value, ::std::function<bool(uchar)> isAlphaNum);
25// NOLINTEND
26
27// static variables
28// NOLINTBEGIN
29MCAPI ::std::vector<::std::pair<::std::string, ::std::string>> const& EMPTY_QUERY_PARAMETERS();
30
31MCAPI ::Util::Url::Components const& EMPTY_URL();
32// NOLINTEND
33
34} // namespace Util::Url