Interface for overriding HTTP handling.
More...
#include <mip/http_delegate.h>
Interface for overriding HTTP handling.
◆ ~HttpDelegate()
| virtual HttpDelegate::~HttpDelegate |
( |
| ) |
|
|
inlinevirtual |
◆ CancelAllOperations()
| virtual void HttpDelegate::CancelAllOperations |
( |
| ) |
|
|
pure virtual |
Cancel ongoing HTTP requests.
◆ CancelOperation()
| virtual void HttpDelegate::CancelOperation |
( |
const std::string & | requestId | ) |
|
|
pure virtual |
Cancel a specific HTTP operation.
- Parameters
-
| requestId | ID of request to cancel |
◆ Send()
| virtual std::shared_ptr< HttpOperation > HttpDelegate::Send |
( |
const std::shared_ptr< HttpRequest > & | request, |
|
|
const std::shared_ptr< void > & | context ) |
|
pure virtual |
Send HTTP request.
- Parameters
-
| request | HTTP request |
| context | The same opaque client context that was passed to the API that resulted in this HTTP request |
- Returns
- HTTP operation container
◆ SendAsync()
| virtual std::shared_ptr< HttpOperation > HttpDelegate::SendAsync |
( |
const std::shared_ptr< HttpRequest > & | request, |
|
|
const std::shared_ptr< void > & | context, |
|
|
const std::function< void(std::shared_ptr< HttpOperation >)> & | callbackFn ) |
|
pure virtual |
Send HTTP request asynchronously.
- Parameters
-
| request | HTTP request |
| context | The same opaque client context that was passed to the API that resulted in this HTTP request |
| callbackFn | Function that will be executed upon completion |
- Returns
- HTTP operation container
The documentation for this class was generated from the following file:
- src/api/mip/http_delegate.h