Interface for overriding HTTP handling.
More...
#include <src/api/mip/http_delegate.h>
|
virtual void | CancelAllOperations ()=0 |
| Cancel ongoing HTTP requests.
|
|
virtual void | CancelOperation (const std::string &requestId)=0 |
| Cancel a specific HTTP operation.
|
|
virtual std::shared_ptr< HttpOperation > | Send (const std::shared_ptr< HttpRequest > &request, const std::shared_ptr< void > &context)=0 |
| Send HTTP request.
|
|
virtual std::shared_ptr< HttpOperation > | SendAsync (const std::shared_ptr< HttpRequest > &request, const std::shared_ptr< void > &context, const std::function< void(std::shared_ptr< HttpOperation >)> &callbackFn)=0 |
| Send HTTP request asynchronously.
|
|
Interface for overriding HTTP handling.
Definition at line 50 of file http_delegate.h.
◆ 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: