![]() |
ImFusion SDK 4.3
|
#include <ImFusion/Base/Utils/Request.h>
Wrapper around libcurl for simple GET and POST requests WARNING: this is experimental and only available for the LicenseManager for the moment. More...
Inheritance diagram for Request:Wrapper around libcurl for simple GET and POST requests WARNING: this is experimental and only available for the LicenseManager for the moment.
Public Member Functions | |
| Request (const std::string &url) | |
| template<class Rep, class Period> | |
| void | setTimeout (std::chrono::duration< Rep, Period > timeout) |
| Set a timeout for the request. | |
| void | setProxy (const std::string &host) |
| Set proxy for the request. | |
| Response | get () |
| HTTP get request. | |
| Response | post (const std::string &data, const std::string &content_type="application/x-www-form-urlencoded") |
| HTTP post request with the given data. | |
| template<> | |
| void | setTimeout (std::chrono::milliseconds timeout) |
Additional Inherited Members | |
Protected Member Functions inherited from NotCopyable | |
| NotCopyable (NotCopyable &&) noexcept=default | |
| NotCopyable & | operator= (NotCopyable &&) noexcept=default |
| NotCopyable (const NotCopyable &)=delete | |
| NotCopyable & | operator= (const NotCopyable &)=delete |