[Unit Test] Server version mismatch
[Unit Test] Empty required server version API and curl changes
This commit is contained in:
@@ -12,6 +12,9 @@ public:
|
||||
enum class _SiaCurlError
|
||||
{
|
||||
Success,
|
||||
ServerVersionMismatch,
|
||||
InvalidRequiredVersion,
|
||||
NoResponse,
|
||||
Failed
|
||||
};
|
||||
|
||||
@@ -27,10 +30,13 @@ private:
|
||||
Property(SiaHostConfig, HostConfig, public, public)
|
||||
|
||||
private:
|
||||
CStringA ConstructPath(const CString& relativePath) const;
|
||||
std::string ConstructPath(const String& relativePath) const;
|
||||
_SiaCurlError _Get(const String& path, json& response) const;
|
||||
bool CheckVersion(_SiaCurlError& error) const;
|
||||
|
||||
public:
|
||||
_SiaCurlError Get(const CString& path, json& result);
|
||||
String GetServerVersion() const;
|
||||
_SiaCurlError Get(const String& path, json& result) const;
|
||||
};
|
||||
|
||||
typedef CSiaCurl::_SiaCurlError SiaCurlError;
|
||||
|
Reference in New Issue
Block a user