Interface for overriding HTTP handling.
More...
#include <http_delegate.h>
|
| 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.
|
| |
| virtual void | CancelOperation (const std::string &requestId)=0 |
| | Cancel a specific HTTP operation.
|
| |
| virtual void | CancelAllOperations ()=0 |
| | Cancel ongoing HTTP requests.
|
| |
Interface for overriding HTTP handling.
◆ 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: