Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
Loading...
Searching...
No Matches
HttpDelegate Class Referenceabstract

Interface for overriding HTTP handling. More...

#include <src/api/mip/http_delegate.h>

Public Member Functions

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< HttpOperationSend (const std::shared_ptr< HttpRequest > &request, const std::shared_ptr< void > &context)=0
 Send HTTP request.
 
virtual std::shared_ptr< HttpOperationSendAsync (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.
 

Detailed Description

Interface for overriding HTTP handling.

Definition at line 50 of file http_delegate.h.

Member Function Documentation

◆ 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
requestIdID 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
requestHTTP request
contextThe 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
requestHTTP request
contextThe same opaque client context that was passed to the API that resulted in this HTTP request
callbackFnFunction that will be executed upon completion
Returns
HTTP operation container

The documentation for this class was generated from the following file: