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::ResourceUri { struct ValidationResult; }
8namespace Util::Url { struct Components; }
9namespace Util::Url { struct ComponentsView; }
10// clang-format on
11
12namespace Util::Url {
13// functions
14// NOLINTBEGIN
15MCNAPI ::std::string anonymizeIPAddress(::std::string const& ipAddress);
16
17MCNAPI ::std::string anonymizeIPv6Address(::std::string const& ipAddress);
18
19MCNAPI bool isValidIP(::std::string_view ipAddrStr, bool considerIPv4Valid, bool considerIPv6Valid);
20
21MCNAPI ::Util::Url::ComponentsView parseUrl(::std::string_view url);
22
23MCNAPI ::std::string urlEncode(::std::string_view value, ::std::function<bool(uchar)> isAlphaNum);
24
25MCNAPI ::Util::ResourceUri::ValidationResult validateAbsoluteUrl(::std::string const& url);
26// NOLINTEND
27
28// static variables
29// NOLINTBEGIN
30MCNAPI ::std::vector<::std::pair<::std::string, ::std::string>> const& EMPTY_QUERY_PARAMETERS();
31
32MCNAPI ::Util::Url::Components const& EMPTY_URL();
33// NOLINTEND
34
35} // namespace Util::Url