ImFusion SDK 4.3
Request Class Reference

#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:

Detailed Description

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
 
NotCopyableoperator= (NotCopyable &&) noexcept=default
 
 NotCopyable (const NotCopyable &)=delete
 
NotCopyableoperator= (const NotCopyable &)=delete
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close