#include <MRWebRequest.h>
◆ ResponseCallback
◆ Method
Enumerator |
---|
Get | |
Post | |
Patch | |
Put | |
Delete | |
◆ WebRequest() [1/2]
MR::WebRequest::WebRequest |
( |
| ) |
|
|
default |
◆ WebRequest() [2/2]
MRVIEWER_API MR::WebRequest::WebRequest |
( |
std::string | url | ) |
|
|
explicit |
◆ clear()
MRVIEWER_API void MR::WebRequest::clear |
( |
| ) |
|
◆ send() [1/2]
◆ send() [2/2]
MRVIEWER_API void MR::WebRequest::send |
( |
std::string | url, |
|
|
std::string | logName, |
|
|
ResponseCallback | callback, |
|
|
bool | async = true ) |
send request, calling callback on answer, if async then callback is called in next frame after getting response NOTE: downloading a binary file in synchronous mode is forbidden by JavaScript
- Parameters
-
◆ setAsync()
MRVIEWER_API void MR::WebRequest::setAsync |
( |
bool | async | ) |
|
◆ setBody()
MRVIEWER_API void MR::WebRequest::setBody |
( |
std::string | body | ) |
|
◆ setDownloadProgressCallback()
MRVIEWER_API void MR::WebRequest::setDownloadProgressCallback |
( |
ProgressCallback | callback | ) |
|
◆ setFormData()
MRVIEWER_API void MR::WebRequest::setFormData |
( |
std::vector< FormData > | formData | ) |
|
◆ setHeaders()
MRVIEWER_API void MR::WebRequest::setHeaders |
( |
std::unordered_map< std::string, std::string > | headers | ) |
|
◆ setInputPath()
MRVIEWER_API void MR::WebRequest::setInputPath |
( |
std::string | inputPath | ) |
|
◆ setLogName()
MRVIEWER_API void MR::WebRequest::setLogName |
( |
std::string | logName | ) |
|
◆ setMethod()
MRVIEWER_API void MR::WebRequest::setMethod |
( |
Method | method | ) |
|
◆ setOutputPath()
MRVIEWER_API void MR::WebRequest::setOutputPath |
( |
std::string | outputPath | ) |
|
◆ setParameters()
MRVIEWER_API void MR::WebRequest::setParameters |
( |
std::unordered_map< std::string, std::string > | parameters | ) |
|
◆ setTimeout()
MRVIEWER_API void MR::WebRequest::setTimeout |
( |
int | timeoutMs | ) |
|
◆ setUploadProgressCallback()
MRVIEWER_API void MR::WebRequest::setUploadProgressCallback |
( |
ProgressCallback | callback | ) |
|
The documentation for this class was generated from the following file: