34#ifndef API_MIP_HTTP_DELEGATE_H_
35#define API_MIP_HTTP_DELEGATE_H_
60 virtual std::shared_ptr<HttpOperation>
Send(
61 const std::shared_ptr<HttpRequest>& request,
62 const std::shared_ptr<void>& context) = 0;
74 const std::shared_ptr<HttpRequest>& request,
75 const std::shared_ptr<void>& context,
76 const std::function<
void(std::shared_ptr<HttpOperation>)>& callbackFn) = 0;
Interface for overriding HTTP handling.
virtual void CancelAllOperations()=0
Cancel ongoing HTTP requests.
virtual std::shared_ptr< HttpOperation > Send(const std::shared_ptr< HttpRequest > &request, const std::shared_ptr< void > &context)=0
Send HTTP request.
virtual void CancelOperation(const std::string &requestId)=0
Cancel a specific HTTP operation.
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.
Contains HttpRequest interface used by HttpDelegate.
Contains HttpOperation interface used by HttpDelegate.