#include #include #include HttpDownload::HttpDownload(PSClientConnection& client, NonnullRefPtr&& job) : Download(client) , m_job(job) { m_job->on_finish = [this](bool success) { if (m_job->response()) set_payload(m_job->response()->payload()); did_finish(success); }; } HttpDownload::~HttpDownload() { } NonnullRefPtr HttpDownload::create_with_job(Badge, PSClientConnection& client, NonnullRefPtr&& job) { return adopt(*new HttpDownload(client, move(job))); }