19 #ifndef CORE_NET_HTTP_STREAMING_REQUEST_H_
20 #define CORE_NET_HTTP_STREAMING_REQUEST_H_
76 virtual void abort_request_if(std::uint64_t limit,
const std::chrono::seconds& time) = 0;
Encapsulates callbacks that can happen during request execution.
The Request class encapsulates a request for a web resource.
std::function< Progress::Next(const Progress &)> ProgressHandler
ProgressHandler is invoked for progress updates while executing the request.
The StreamingRequest class encapsulates a request for a web resource, streaming data to the receiver ...
virtual void resume()=0
Resume the request.
virtual void pause()=0
Pause the request with options for aborting the request. The request will be aborted if transfer spee...
virtual void async_execute(const Handler &handler, const DataHandler &dh)=0
Asynchronously executes the request, reporting errors, progress and completion to the given handlers.
virtual void abort_request_if(std::uint64_t limit, const std::chrono::seconds &time)=0
Sets options for aborting the request. The request will be aborted if transfer speed belows limit byt...
virtual Response execute(const ProgressHandler &ph, const DataHandler &dh)=0
Synchronously executes the request.
std::function< void(const std::string &)> DataHandler
The Response struct models a response to a core::net::http::Request.
#define CORE_NET_DLL_PUBLIC