net-cpp
..
C++11 library for networking purposes
|
Go to the documentation of this file.
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;
82 #endif // CORE_NET_HTTP_STREAMING_REQUEST_H_
virtual Response execute(const ProgressHandler &ph, const DataHandler &dh)=0
Synchronously executes the request.
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...
The StreamingRequest class encapsulates a request for a web resource, streaming data to the receiver ...
The Response struct models a response to a core::net::http::Request.
Encapsulates callbacks that can happen during request execution.
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 pause()=0
Pause the request with options for aborting the request. The request will be aborted if transfer spee...
virtual void resume()=0
Resume the request.
#define CORE_NET_DLL_PUBLIC
std::function< Progress::Next(const Progress &)> ProgressHandler
ProgressHandler is invoked for progress updates while executing the request.
std::function< void(const std::string &)> DataHandler
The Request class encapsulates a request for a web resource.