Network/WebRequest: Add option flags

This commit is contained in:
SirLynix
2024-01-14 23:03:45 +01:00
parent c52ffa15c4
commit f1de6f9198
4 changed files with 26 additions and 3 deletions

View File

@@ -119,6 +119,22 @@ namespace Nz
};
constexpr std::size_t SocketTypeCount = static_cast<std::size_t>(SocketType::Max) + 1;
enum class WebRequestOption
{
FailOnError,
FollowRedirects,
Max = FollowRedirects
};
template<>
struct EnumAsFlags<WebRequestOption>
{
static constexpr WebRequestOption max = WebRequestOption::Max;
};
using WebRequestOptionFlags = Flags<WebRequestOption>;
}
#endif // NAZARA_NETWORK_ENUMS_HPP