1.10 |
An HTTP client request. More...
#include <http.h>
Public Types | |
using | ReadCallback = std::function< void(const unsigned char *data, size_t len, bool done) > |
Type used for callback on read. | |
Public Member Functions | |
HttpClientRequest () noexcept | |
Create a request for the specified URL. | |
HttpClientRequest (const HttpClientRequest &)=delete | |
HttpClientRequest (HttpClientRequest &&) noexcept | |
virtual | ~HttpClientRequest () noexcept |
HttpClientRequest & | operator= (const HttpClientRequest &)=delete |
HttpClientRequest & | operator= (HttpClientRequest &&) noexcept |
virtual void | start_async (const std::string &url, ReadCallback callback) |
Start the download. | |
Protected Attributes | |
std::unique_ptr< detail::HttpClientRequestData > | m_impl |
Implementation pointer. | |
Friends | |
class | detail::HttpClientRequestManager |
An HTTP client request.
This works as an asynchronous HTTP request handler that uses the EGT event loop to process the request.
using ReadCallback = std::function < void(const unsigned char* data, size_t len, bool done) > |
Type used for callback on read.
|
explicitnoexcept |
Create a request for the specified URL.
|
delete |
|
noexcept |
|
virtualnoexcept |
|
delete |
|
noexcept |
|
virtual |
Start the download.
|
friend |
|
protected |
Implementation pointer.