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

@@ -46,6 +46,7 @@ namespace Nz
inline void SetHeader(std::string header, std::string value);
void SetJSonContent(std::string encodedJSon);
void SetMaximumFileSize(UInt64 maxFileSize);
inline void SetOptions(WebRequestOptionFlags options);
inline void SetResultCallback(ResultCallback callback);
void SetServiceName(std::string serviceName);
void SetURL(const std::string& url);
@@ -87,6 +88,7 @@ namespace Nz
MovablePtr<emscripten_fetch_t> m_fetchHandle;
#endif
ResultCallback m_resultCallback;
WebRequestOptionFlags m_options;
bool m_isUserAgentSet;
};
}