dc49af3c59
For now there are two methods: - `NETWORK:IsUrlAllowed()`: Check whether access to a certain URL is allowed. - `NETWORK:HttpRequest()`: Perform an HTTP request. By default access to the network is disabled for all target hosts. It can be enabled by setting `HttpEnable=1` in the preferences. Individual hosts have to be added to `HttpAllowHosts` as a comma separated list to allow access. See included docs for more details on usage.
26 lines
571 B
C++
26 lines
571 B
C++
/*
|
|
* IXStrCaseCompare.h
|
|
* Author: Benjamin Sergeant
|
|
* Copyright (c) 2020 Machine Zone. All rights reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
namespace ix
|
|
{
|
|
struct CaseInsensitiveLess
|
|
{
|
|
// Case Insensitive compare_less binary function
|
|
struct NocaseCompare
|
|
{
|
|
bool operator()(const unsigned char& c1, const unsigned char& c2) const;
|
|
};
|
|
|
|
static bool cmp(const std::string& s1, const std::string& s2);
|
|
|
|
bool operator()(const std::string& s1, const std::string& s2) const;
|
|
};
|
|
} // namespace ix
|