19 #ifndef CORE_NET_HTTP_STREAMING_REQUEST_H_ 20 #define CORE_NET_HTTP_STREAMING_REQUEST_H_ 55 virtual void async_execute(
const Handler& handler,
const DataHandler& dh) = 0;
62 virtual void pause() = 0;
68 virtual void resume() = 0;
76 virtual void abort_request_if(std::uint64_t limit,
const std::chrono::seconds& time) = 0;
82 #endif // CORE_NET_HTTP_STREAMING_REQUEST_H_ The Request class encapsulates a request for a web resource.
The StreamingRequest class encapsulates a request for a web resource, streaming data to the receiver ...
std::function< void(const std::string &)> DataHandler
The Response struct models a response to a core::net::http::Request.
#define CORE_NET_DLL_PUBLIC
Encapsulates callbacks that can happen during request execution.
std::function< Progress::Next(const Progress &)> ProgressHandler
ProgressHandler is invoked for progress updates while executing the request.