ImFusion C++ SDK 4.4.0
ImFusion::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 ImFusion::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 ImFusion::Utils::NotCopyable
 NotCopyable (NotCopyable &&) noexcept=default
NotCopyable & operator= (NotCopyable &&) noexcept=default
 NotCopyable (const NotCopyable &)=delete
NotCopyable & operator= (const NotCopyable &)=delete

The documentation for this class was generated from the following file:
  • ImFusion/Base/Utils/Request.h
Search Tab / S to search, Esc to close